|
NAMEGantry::Plugins::Cache::FastMmap - A Plugin interface to a caching subsystemSYNOPSISIt is sometimes desireable to cache data between page accesess. This module gives access to the Cache::FastMmap module to store that data.<Perl> # ... use MyApp qw{ -Engine=CGI -TemplateEngine=TT Cache::FastMap }; </Perl> DESCRIPTIONThis plugin mixes in methods to store data within a cache. This data is then available for later retrival. Data is stored within the cache by key/value pairs. There are no restrictions on what information can be stored. This cache is designed for short term data storage. Cached data items will be timed out and purged at regular intervals. The caching system also has the concept of namespace. Namespaces are being used to make key's unique. So you may store multiple unique data items within the cache.CONFIGURATIONThe following items can be set by configuration:cache_pages the number of pages within the cache cache_pagesize the sixe of those pages cache_expires the expiration of items within the cache cache_filename the cache filename The following reasonable defaults are being used for those items: cache_pages 256 cache_pagesize 256k cache_expires 1h cache_filename /tmp/gantry.cache Since this cache is being managed by Cache::FastMmap, any changes to those defaults should be consistent with that modules usage. Also note that memory consumption may seem excessive. This may cause problems on your system, so the Cache::FastMmap man pages will explain how to deal with those issue. METHODS
SEE ALSOGantry AUTHORSKevin L. Esteb <kesteb@wsipc.org>, Tim Keefer <tim@timkeefer.com>COPYRIGHT AND LICENSECopyright (C) 2007 Kevin L. EstebThis library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.
Visit the GSP FreeBSD Man Page Interface. |