Cache.with_cache — Function.
with_cache(f::Function, key::String, expiration::Int = CACHE_DURATION; dir = "", condition::Bool = true)
Executes the function
f and stores the result into the cache for the duration 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
false caching will be skipped.
Cache.cache_key — Function.
cache_key(args...) :: String
Computes a unique cache key based on
args. Used to generate unique
keys for storing data in cache.
Cache.cache_adapter — Function.
cache_adapter(adapter::Symbol = Genie.config.cache_adapter) :: Module
Returns the currently active cache adapter, as defined in the settings.