| FileCache | R Documentation |
File-based persistent cache using RDS files
VectrixDB::BaseCache -> FileCache
new()Create a new FileCache
FileCache$new(config = NULL)
configCacheConfig object
get()Get value from cache
FileCache$get(key)
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
exists()Check if key exists
FileCache$exists(key)
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.