SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG
DONATE


YUM REPOSITORY

 
 

MAN page from OpenSuSE perl-Cache-Cache-1.08-lp151.2.2.noarch.rpm

Cache::SharedMemoryCache

Section: User Contributed Perl Documentation (3)
Updated: 2015-04-17
Index 

NAME

Cache::SharedMemoryCache -- extends the MemoryCache. 

DESCRIPTION

The SharedMemoryCache extends the MemoryCache class and binds the datastore to shared memory so that separate process can use the samecache.

The official recommendation is now to use FileCache instead ofSharedMemoryCache. The reasons for this include:

1) FileCache provides equal or better performance in all cases thatwe've been able to test. This is due to all modern OS's ability tobuffer and cache file system accesses very well.

2) FileCache has no real limits on cached object size or the number ofcached objects, whereas the SharedMemoryCache has limits, and ratherlow ones at that.

3) FileCache works well on every OS, whereas the SharedMemoryCacheworks only on systems that support IPC::ShareLite. And IPC::ShareLiteis an impressive effort --- but think about how hard it is to getshared memory working properly on *one* system. Now imagine writing awrapper around shared memory for many operating systems. 

SYNOPSIS

  use Cache::SharedMemoryCache;  my %cache_options_= ( 'namespace' => 'MyNamespace',                        'default_expires_in' => 600 );  my $shared_memory_cache =     new Cache::SharedMemoryCache( \%cache_options ) or      croak( "Couldn't instantiate SharedMemoryCache" );
 

METHODS

See Cache::Cache for the API documentation. 

OPTIONS

See Cache::Cache for the standard options. 

PROPERTIES

See Cache::Cache for the default properties. 

SEE ALSO

Cache::Cache, Cache::MemoryCache 

AUTHOR

Original author: DeWitt Clinton <dewittAATTunto.net>

Last author: $Author: dclinton $

Copyright (C) 2001-2003 DeWitt Clinton


 

Index

NAME
DESCRIPTION
SYNOPSIS
METHODS
OPTIONS
PROPERTIES
SEE ALSO
AUTHOR

This document was created byman2html,using the manual pages.