Cache::FastMmap::WithWin32 - Uses an mmap'ed file to act as a shared memory interprocess cache


NAME

Cache::FastMmap::WithWin32 - Uses an mmap'ed file to act as a shared memory interprocess cache


SYNOPSIS

  use Cache::FastMmap::WithWin32;
  # Uses vaguely sane defaults
  $Cache = Cache::FastMmap->new(); # Yes, this is correct for this module
  # $Value must be a reference...
  $Cache->set($Key, $Value);
  $Value = $Cache->get($Key);
  $Cache = Cache::FastMmap->new(raw_values => 1);
  # $Value can't be a reference...
  $Cache->set($Key, $Value);
  $Value = $Cache->get($Key);


ABSTRACT

A shared memory cache through an mmap'ed file. It's core is written in C for performance. It uses fcntl locking to ensure multiple processes can safely access the cache at the same time. It uses a basic LRU algorithm to keep the most used entries in the cache.


DESCRIPTION

This module is a fork of Cache::FastMmap by Rob Mueller to include the Win32 port by Ash Berlin, cos i got fed up waiting for Rob to release it. This distribution contains a file called Cache/FastMmap/WithWin32.pm that contains a Cache::FastMmap package, so including this module allows your code to run on both *nix and Win32 without modification (or at least that is the plan)

Since I haven't changed anything in the interface or behaviour of the original module, see the Cache::FastMmap manpage for documentation.


AUTHOR

Original *nix version by Rob Mueller <mailto:cpan@robm.fastmail.fm>

Win32 port and refactoring by Ash Berlin >

VC6 fixes from Kenichi Ishigaki


COPYRIGHT AND LICENSE

Copyright (C) 2003-2007 by FastMail IP Partners

Portions copyright (C) 2007 Ash Berlin

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.