Cache
class Cache (View source)
Cache values
Methods
static void
set(string $cacheKey, mixed $value)
Store a value
static bool
has(string $cacheKey)
Does the cache have a value stored for the key
static mixed
get(string $cacheKey, mixed $defaultValue = null)
Get back a cached value
static void
remove(string $cacheKey)
Remove a cached value
static void
purge()
Purge all cached values
Details
static void
set(string $cacheKey, mixed $value)
Store a value
static bool
has(string $cacheKey)
Does the cache have a value stored for the key
static mixed
get(string $cacheKey, mixed $defaultValue = null)
Get back a cached value
static void
remove(string $cacheKey)
Remove a cached value
static void
purge()
Purge all cached values