|
NAMECHI::Driver::FastMmap - Persistent interprocess cache via mmap'ed filesVERSIONversion 0.60SYNOPSISuse 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 OPTIONS
Any other constructor options not recognized by CHI are passed along to Cache::FastMmap->new. METHODS
SEE ALSOCHIAUTHORJonathan Swartz <swartz@pobox.com>COPYRIGHT AND LICENSEThis software is copyright (c) 2012 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.
Visit the GSP FreeBSD Man Page Interface. |