Query: chi::driver::fastmmap
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
CHI::Driver::FastMmap(3pm) User Contributed Perl Documentation CHI::Driver::FastMmap(3pm)NAMECHI::Driver::FastMmap - Persistent interprocess cache via mmap'ed filesVERSIONversion 0.54SYNOPSISuse CHI; my $cache = CHI->new( driver => 'FastMmap', root_dir => '/path/to/cache/root', cache_size => '1m' );DESCRIPTIONThis 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.REQUIREMENTSYou will need to install Cache::FastMmap from CPAN to use this driver.CONSTRUCTOR OPTIONSroot_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.METHODSfm_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 ALSOCHIAUTHORJonathan Swartz <swartz@pobox.com>COPYRIGHT AND LICENSEThis 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)
Related Man Pages |
---|
chi::cacheobject(3pm) - debian |
chi::driver::file(3pm) - debian |
chi::driver::memcached::libmemcached(3pm) - debian |
chi::driver::rawmemory(3pm) - debian |
poet::cache(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
Installing Dash Shell on OS X Lion |
How can I do this in VI editor? |
Introduction |
A (ksh) Library For and From UNIX.com |