File-based persistent cache using RDS files
VectrixDB::BaseCache -> FileCache
new()Create a new FileCache
FileCache$new(config = NULL)configCacheConfig object
keyCache key
Value or NULL
set()Set value in cache
FileCache$set(key, value, ttl = NULL)keyCache key
valueValue to cache
ttlTime to live
delete()Delete key from cache
FileCache$delete(key)keyCache key
Logical success
keyCache key
Logical
clear()Clear cache
FileCache$clear()
size()Get cache size
FileCache$size()Integer
cleanup_expired()Cleanup expired entries
FileCache$cleanup_expired()Integer count removed
clone()The objects of this class are cloneable with this method.
FileCache$clone(deep = FALSE)deepWhether to make a deep clone.