Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

chi::driver::fastmmap(3pm) [debian man page]

CHI::Driver::FastMmap(3pm)				User Contributed Perl Documentation				CHI::Driver::FastMmap(3pm)

NAME
CHI::Driver::FastMmap - Persistent interprocess cache via mmap'ed files VERSION
version 0.54 SYNOPSIS
use CHI; my $cache = CHI->new( driver => 'FastMmap', root_dir => '/path/to/cache/root', cache_size => '1m' ); DESCRIPTION
This cache driver uses Cache::FastMmap to store data in an mmap'ed file. It is very fast, and can be used to share data between processes on a single host, though not between hosts. To support namespaces, this driver takes a directory parameter rather than a file, and creates one Cache::FastMMap file for each namespace. Because CHI handles serialization automatically, we pass the "raw_values" flag as 1; and to conform to the CHI API, we pass "unlink_on_exit" as 0, so that all cache files are permanent. REQUIREMENTS
You will need to install Cache::FastMmap from CPAN to use this driver. CONSTRUCTOR OPTIONS
root_dir Path to the directory that will contain the share files, one per namespace. Defaults to a directory called 'chi-driver-fastmmap' under the OS default temp directory (e.g. '/tmp' on UNIX). dir_create_mode Permissions mode to use when creating directories. Defaults to 0775. Any other constructor options not recognized by CHI are passed along to Cache::FastMmap->new. METHODS
fm_cache Returns a handle to the underlying Cache::FastMmap object. You can use this to call FastMmap-specific methods that are not supported by the general API, e.g. $self->fm_cache->get_and_set("key", sub { ... }); SEE ALSO
CHI AUTHOR
Jonathan Swartz <swartz@pobox.com> COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Jonathan Swartz. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-05-30 CHI::Driver::FastMmap(3pm)

Check Out this Related Man Page

Catalyst::Plugin::Cache::Store::FastMmap(3pm)		User Contributed Perl Documentation	     Catalyst::Plugin::Cache::Store::FastMmap(3pm)

NAME
Catalyst::Plugin::Cache::Store::FastMmap - DEPRECATED - FastMmap cache store for Catalyst::Plugin::Cache. SYNOPSIS
# instead of using this plugin, you can now do this: use Catalyst qw/ Cache /; __PACKAGE__->config( cache => { backend => { class => "Cache:FastMmap", share_file => "/path/to/file", cache_size => "16m", }, }); STATUS
This plugin is deprecated because Cache::FastMmap no longer needs to be wrapped to store plain values. It is still available on the CPAN for backwards compatibility and will still work with newer versions of Cache::FastMmap with a slight performance degredation. DESCRIPTION
This store plugin is a bit of a wrapper for Cache::FastMmap. While you could normally just configure with backend => { class => "Cache::FastMmap", share_file => ..., } Cache::FastMmap can't store plain values by default. This module ships with a subclass that will wrap all values in a scalar reference before storing. This store plugin will try to provide a default "share_file" as well, that won't clash with other apps. CONFIGURATION
See "CONFIGURATION" in Catalyst::Plugin::Cache for a general overview of cache plugin configuration. This plugin just takes a hash reference in the backend field and passes it on to Cache::FastMmap. SEE ALSO
Catalyst::Plugin::Cache, Cache::FastMmap. AUTHOR
Yuval Kogman, "nothingmuch@woobling.org" COPYRIGHT &; LICENSE Copyright (c) Yuval Kogman, 2006. All rights reserved. This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself, as well as under the terms of the MIT license. perl v5.14.2 2007-07-05 Catalyst::Plugin::Cache::Store::FastMmap(3pm)
Man Page