Previous Next

## Usage

| `use Cache::Mmap;` `$cache=Cache::Mmap->new($filename,\%options);`
| Loads the module and binds to `$filename`, creating if it doesn't exist
| `($found,$value1)=$cache->read($key1);`
| Fetch value from cache with key `$key1`
| `$found` is true if item found in cache or underlying data
| `$cache->write($key2,$value2);`
| Update/insert value into cache with key `$key2`.
| Update underlying data if appropriate options set
| `$cache->delete($key3);`
| Delete cache entry `$key3` from cache.
| Update underlying data if appropriate options set

Previous Next