GenieCache.cache_duration
— Functioncache_duration()
Returns the default duration of the cache in seconds.
GenieCache.cache_duration!
— Functioncache_duration!(duration::Int)
Sets the default duration of the cache in seconds.
GenieCache.cache_path
— Functioncache_path()
Returns the default path of the cache folder.
GenieCache.cache_path!
— Functioncache_path!(cachepath::AbstractString)
Sets the default path of the cache folder.
GenieCache.withcache
— Functionwithcache(f::Function, key::Union{String,Symbol}, expiration::Int = GenieCache.cache_duration(); dir = "", condition::Bool = true)
Executes the function f
and stores the result into the cache for the duration (in seconds) of expiration
. Next time the function is invoked, if the cache has not expired, the cached result is returned skipping the function execution. The optional dir
param is used to designate the folder where the cache will be stored (within the configured cache folder). If condition
is false
caching will be skipped.
GenieCache.purge
— Functionpurge()
Removes the cache data stored under the key
key.
GenieCache.purgeall
— Functionpurgeall()
Removes all cached data.
Missing docstring for cache
. Check Documenter's build log for details.
GenieCache.cachekey
— Functioncachekey(args...) :: String
Computes a unique cache key based on args
. Used to generate unique key
s for storing data in cache.