| BaseCache | R Documentation |
Abstract base class for cache backends
configCache configuration
statsCache statistics
new()Create a new cache
BaseCache$new(config = NULL)
configCacheConfig object
get()Get a value from cache
BaseCache$get(key)
keyCache key
Cached value or NULL
set()Set a value in cache
BaseCache$set(key, value, ttl = NULL)
keyCache key
valueValue to cache
ttlTime to live (optional)
delete()Delete a key from cache
BaseCache$delete(key)
keyCache key
Logical success
exists()Check if key exists
BaseCache$exists(key)
keyCache key
Logical
clear()Clear all cache entries
BaseCache$clear()
size()Get cache size
BaseCache$size()
Integer count
get_many()Get multiple values
BaseCache$get_many(keys)
keysCharacter vector of keys
Named list of values
set_many()Set multiple values
BaseCache$set_many(items, ttl = NULL)
itemsNamed list of values
ttlTime to live
delete_many()Delete multiple keys
BaseCache$delete_many(keys)
keysCharacter vector of keys
Integer count of deleted keys
make_key()Make a prefixed key
BaseCache$make_key(key)
keyRaw key
Prefixed key
clone()The objects of this class are cloneable with this method.
BaseCache$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.