Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cache::sharedmemorycache(3pm) [debian man page]

Cache::SharedMemoryCache(3pm)				User Contributed Perl Documentation			     Cache::SharedMemoryCache(3pm)

NAME
Cache::SharedMemoryCache -- extends the MemoryCache. DESCRIPTION
The SharedMemoryCache extends the MemoryCache class and binds the data store to shared memory so that separate process can use the same cache. The official recommendation is now to use FileCache instead of SharedMemoryCache. The reasons for this include: 1) FileCache provides equal or better performance in all cases that we've been able to test. This is due to all modern OS's ability to buffer and cache file system accesses very well. 2) FileCache has no real limits on cached object size or the number of cached objects, whereas the SharedMemoryCache has limits, and rather low ones at that. 3) FileCache works well on every OS, whereas the SharedMemoryCache works only on systems that support IPC::ShareLite. And IPC::ShareLite is an impressive effort -- but think about how hard it is to get shared memory working properly on *one* system. Now imagine writing a wrapper 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 <dewitt@unto.net> Last author: $Author: dclinton $ Copyright (C) 2001-2003 DeWitt Clinton perl v5.12.4 2009-03-01 Cache::SharedMemoryCache(3pm)

Check Out this Related Man Page

Cache::SizeAwareFileCache(3pm)				User Contributed Perl Documentation			    Cache::SizeAwareFileCache(3pm)

NAME
Cache::SizeAwareFileCache -- extends Cache::FileCache DESCRIPTION
The SizeAwareFileCache class adds the ability to dynamically limit the size (in bytes) of a file system based cache. This class also implements the SizeAwareCache interface, providing the 'max_size' option and the 'limit_size( $size )' method. SYNOPSIS
use Cache::SizeAwareFileCache; my $cache = new Cache::SizeAwareFileCache( { 'namespace' => 'MyNamespace', 'default_expires_in' => 600, 'max_size' => 10000 } ); METHODS
See Cache::Cache and Cache::SizeAwareCache for the API documentation. OPTIONS
See Cache::Cache and Cache::SizeAwareCache for the standard options. PROPERTIES
See Cache::Cache and Cache::SizeAwareCache for the default properties. SEE ALSO
Cache::Cache, Cache::SizeAwareCache, Cache::FileCache AUTHOR
Original author: DeWitt Clinton <dewitt@unto.net> Also: Portions of this code are a rewrite of David Coppit's excellent extentions to the original File::Cache Last author: $Author: dclinton $ Copyright (C) 2001-2003 DeWitt Clinton perl v5.12.4 2009-03-01 Cache::SizeAwareFileCache(3pm)
Man Page

8 More Discussions You Might Find Interesting

1. HP-UX

Buffer Cache

What is the "Buffer Cache" used for? (1 Reply)
Discussion started by: ALTRUNVRSOFLN
1 Replies

2. Programming

g++ with -frepo and shared objects...

G'day, I have been working with a large application that makes extensive use of templates. When compiled under Unix (with g++), this sees some rather impressive bloat. I have been trying to make a temporary quick-fix by using the -frepo option, which results in dramatically smaller shared... (0 Replies)
Discussion started by: Elric of Grans
0 Replies

3. UNIX for Dummies Questions & Answers

Release the memory which is cached.

Hi, Can any one suggest me the way how can get mamory which has been cached during a process execution without rebooting the machine? (1 Reply)
Discussion started by: siba.s.nayak
1 Replies

4. Linux

getting info on Cache Size, Data Cache etc..

Hi all I saw in Microsoft web site www.SysInternals.com a tool called CoreInfo from able to print out on screen the size of the Data and Instruction caches of your processor, the Locigal to Physical Processor mapping, the number of the CPU sockets. etc.. Do you know if in Linux is available a... (2 Replies)
Discussion started by: manustone
2 Replies

5. UNIX for Advanced & Expert Users

echo 1 > /proc/sys/vm/drop_caches a good idea?

Hi folks. I work with several production servers, and I have seen in some Kernel Cache using most of the memory. See this pic: http://i51.tinypic.com/301nb6c.jpg Do you think this is a smart choice? Remember these are productions servers and it is extremely necesary this does not... (6 Replies)
Discussion started by: erick_tuk
6 Replies

6. Red Hat

Need to release Cache memory

Right now i am using Red Hat Enterprise Linux AS release 4 and cache memory occupying around 1.5GB mentioned below, total used free shared buffers cached Mem: 2026 2021 5 0 161 1477 -/+ buffers/cache: 382 1644 ... (4 Replies)
Discussion started by: thakshina
4 Replies

7. AIX

Strange memory behavior

Hello together, i have a strange memory behavior on a AIX 7.1 System, which i cannot explain. The Filesystem-Cache will not be grow up and drops often after few minutes. I know if a file was deleted, that the same segment in the FS-Cache will also be cleared. But i am not sure if this is the... (8 Replies)
Discussion started by: -=XrAy=-
8 Replies

8. UNIX for Dummies Questions & Answers

UNIX Memory

what is the difference between cached and buffer memory? can i use either buffer or cached memory if i want to run an application? (1 Reply)
Discussion started by: erin00
1 Replies