Previous Next

Benefits of Cache::Mmap

+ Uses standard files mmap()'d into process memory space
. only ever one file opened per cache
. max size always specified
. possible size only limited by disk space and VM size
. file split into "buckets", which are locked individually
+ Allows concurrent access (to different buckets)
+ Locks automatically removed by OS if process dies prematurely
+ Transparent (read, write, delete)
+ Write-through or write when necessary
+ Can cache complex data structures (using Storable) or plain strings
+ User-definable filenames (cf IPC::Cache, File::Cache)

Previous Next