1Cache::SharedMemoryCachUes(e3r)Contributed Perl DocumentCaatcihoen::SharedMemoryCache(3)
2
3
4

NAME

6       Cache::SharedMemoryCache -- extends the MemoryCache.
7

DESCRIPTION

9       The SharedMemoryCache extends the MemoryCache class and binds the data
10       store to shared memory so that separate process can use the same cache.
11
12       The official recommendation is now to use FileCache instead of
13       SharedMemoryCache.  The reasons for this include:
14
15       1) FileCache provides equal or better performance in all cases that
16       we've been able to test.  This is due to all modern OS's ability to
17       buffer and cache file system accesses very well.
18
19       2) FileCache has no real limits on cached object size or the number of
20       cached objects, whereas the SharedMemoryCache has limits, and rather
21       low ones at that.
22
23       3) FileCache works well on every OS, whereas the SharedMemoryCache
24       works only on systems that support IPC::ShareLite.  And IPC::ShareLite
25       is an impressive effort -- but think about how hard it is to get shared
26       memory working properly on *one* system.  Now imagine writing a wrapper
27       around shared memory for many operating systems.
28

SYNOPSIS

30         use Cache::SharedMemoryCache;
31
32         my %cache_options_= ( 'namespace' => 'MyNamespace',
33                               'default_expires_in' => 600 );
34
35         my $shared_memory_cache =
36           new Cache::SharedMemoryCache( \%cache_options ) or
37             croak( "Couldn't instantiate SharedMemoryCache" );
38

METHODS

40       See Cache::Cache for the API documentation.
41

OPTIONS

43       See Cache::Cache for the standard options.
44

PROPERTIES

46       See Cache::Cache for the default properties.
47

SEE ALSO

49       Cache::Cache, Cache::MemoryCache
50

AUTHOR

52       Original author: DeWitt Clinton <dewitt@unto.net>
53
54       Last author:     $Author: dclinton $
55
56       Copyright (C) 2001-2003 DeWitt Clinton
57
58
59
60perl v5.32.1                      2021-01-26       Cache::SharedMemoryCache(3)
Impressum