NAME

ObjStore::AppInstance - A helper class for interactive ObjStore tools.

SYNOPSIS

use base 'ObjStore::AppInstance';

sub new {
  my ($class) = @_;
  my $o = $class->SUPER::new('app-name', pvars => [qw(ttype pref view)]);
  ...
  $o
}

DESCRIPTION

Sessions contain both transient and persistent data.

The persistent data can only be accessed within a transaction but transient data is always available.

METHODS

  • cache

  • uncache

  • destroy

TODO

Make it an ObjStore::Table.

Identify sessions with hostname/pid or custom keys and garbage collect if unused for long enough.