From Free Software Directory
Jump to: navigation, search


Perl module providing a mmap'ed cache

Cache::FastMmap uses the mmap system call to establish an interprocess shared memory cache. Its core code is written in C, which can provide significant performance compared to a Pure Perl implementation such as Cache::Mmap. It can handle rather large pages without the socket connection and latency of using full- fledged databases where long-term persistence is unnecessary.

Since the algorithm uses a dual-level hashing system (a hash is used to find a page, then another hash within each page to find a given slot), most get calls can execute in constant O(1) time. The system uses fcntl to handle concurrent access, but only locks individual pages to reduce contention. The oldest (least recently used) data is evicted from the cache first, making this cache implementation most suitable for cases when old data is unlikely to be searched.



Verified by

Verified on




Verified by

Debian: Harlan Lieberman-Berg <>

Verified on

1 June 2013


License: artistic or gpl-1+

Leaders and contributors

Rob Mueller contact

Resources and communication

AudienceResource typeURI
Debian (Ref) (R)
Perl (Ref)

Software prerequisites


"contact" is not in the list (Maintainer, Contributor, Developer, Sponsor, Unknown) of allowed values for the "Role" property.

"Debian (Ref) (R)" is not in the list (General, Help, Bug Tracking, Support, Developer) of allowed values for the "Resource audience" property.

"Perl (Ref)" is not in the list (General, Help, Bug Tracking, Support, Developer) of allowed values for the "Resource audience" property.

Date 2015-07-17
Source Debian
Source link


Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the page “GNU Free Documentation License”.

The copyright and license notices on this page only apply to the text on this page. Any software or copyright-licenses or other similar notices described in this text has its own copyright notice and license, which can usually be found in the distribution or license text itself.