File-based persistent cache using RDS files
Methods
Inherited methods
Method new()
Create a new FileCache
Arguments
config
CacheConfig object
Method set()
Set value in cache
Usage
FileCache$set(key, value, ttl = NULL)
Arguments
key
Cache key
value
Value to cache
ttl
Time to live
Method delete()
Delete key from cache
Method clear()
Clear cache
Method size()
Get cache size
Method cleanup_expired()
Cleanup expired entries
Usage
FileCache$cleanup_expired()
Returns
Integer count removed
Method clone()
The objects of this class are cloneable with this method.
Usage
FileCache$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.