Debian Codegraph @

ANNOUNCE

raw
1 ANNOUNCEMENT: NEW MODULE: IPC::SharedCache 1.3
2
3 IPC::SharedCache - a Perl module to manage a cache in SysV IPC shared
4 memory.
5
6 CHANGES
7
8 1.3
9
10 - Bug Fix: missing _unlock() in DELETE rectified. (Ed Loehr)
11
12 - Bug Fix: callback array refs were being eaten on cache access.
13 (Maverick)
14
15 SHORT DESCRIPTION
16
17 This module provides a shared memory cache accessed as a tied hash.
18
19 Shared memory is an area of memory that is available to all processes.
20 It is accessed by choosing a key, the ipc_key arguement to tie. Every
21 process that accesses shared memory with the same key gets access to
22 the same region of memory.
23
24 This module attempts to make shared memory easy to use for one
25 specific application - a shared memory cache. For other uses of
26 shared memory see the documentation to the excelent module I use,
27 IPC::ShareLite.
28
29 This module is licenced under the GPL. See the LICENCE section of the
30 README.
31
32
33 AVAILABILITY
34
35 This module is available on SourceForge. Download it at:
36
37 http://download.sourceforge.net/HTML-Template/IPC-SharedCache-1.3.tar.gz
38
39 The module is also available on CPAN. You can get it using CPAN.pm or
40 go to:
41
42 http://www.cpan.org/authors/id/S/SA/SAMTREGAR/
43
44
45 MOTIVATION
46
47 This module began its life as an internal piece of HTML::Template.
48 HTML::Template has the ability to maintain a cache of parsed template
49 structures when running in a persistent environment like
50 Apache/mod_perl. Since parsing a template from disk takes a fair
51 ammount of time this can provide a big performance gain.
52 Unfortunately it can also consume large ammounts of memory since each
53 web server maintains its own cache in its own memory space.
54
55 By using IPC::ShareLite and Storable, HTML::Template was able to
56 maintain a single shared cache of templates. The downside was that
57 HTML::Template's cache routines became complicated by a lot of IPC
58 code. My solution is to break out the IPC cache mechanisms into their
59 own module, IPC::SharedCache. Hopefully over time it can become
60 general enough to be usable by more than just HTML::Template.
61
62
63 DOCUMENTATION
64
65 The documentation is in SharedCache.pm in the form of POD format
66 perldocs. Even the above text might be out of date, so be sure to
67 check the perldocs for the straight truth.
68
69
70 CONTACT INFO
71
72 This module was written by Sam Tregar ([email protected]).