Previous Next

## Cache options

| buckets/bucketsize (13/1024)
| Size of cache
| pagesize (1024)
| Aligns buckets to page boundaries for efficiency
| strings (0)
| Treat cache entries as strings, rather than references
| read/write/delete (undef)
| Code refs for fetching/updating the underlying data
| context (undef)
| Passed to the read/write/delete routines to provide context
| May be altered after `new()`
| permissions (0777)
| File creation permissions
| cache_negative (0)
| Whether to cache entries not found in underlying data
| writethrough (1)
| Whether to write underlying data as `write()` is called or when dirty entries are pushed out of the cache
| expiry (0)
| How long entries should stay in the cache in seconds
| 0: Never expire

Previous Next