CHI::Driver::SharedMem

Cache data in shared memory
Download

CHI::Driver::SharedMem Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Nigel Horne
  • Publisher web site:
  • http://search.cpan.org/~nhorne/

CHI::Driver::SharedMem Tags


CHI::Driver::SharedMem Description

CHI::Driver::SharedMem is a CHI driver which stores data in shared memory objects for persistently over processes. Size is an optional parameter containing the size of the shared memory area, in bytes. Shmkey is a mandatory parameter containing the IPC key for the shared memory area. See IPC::SharedMem for more information.SYNOPSIS use CHI; my $cache = CHI->new( driver => 'SharedMem', size => 8 * 1024, shmkey => 12344321, # Choose something unique ); # ...The shared memory area is stored thus: # Number of bytes in the cache 'cache' => { 'namespace1' => { 'key1' => 'value1', 'key2' => 'value2', # ... }, 'namespace2' => { 'key1' => 'value3', 'key3' => 'value2', # ... } # ... }Product's homepage


CHI::Driver::SharedMem Related Software