RedisTaggedCache
class RedisTaggedCache extends TaggedCache (View source)
Traits
Constants
REFERENCE_KEY_FOREVER |
Forever reference key. |
REFERENCE_KEY_STANDARD |
Standard reference key. |
Methods
Dynamically handle calls to the class.
Dynamically handle calls to the class.
Retrieve an item from the cache by key.
Retrieve an item from the cache and delete it.
Store an item in the cache if the key does not exist.
Store an item in the cache indefinitely.
Get an item from the cache, or store the default value.
Get an item from the cache, or store the default value forever.
Get an item from the cache, or store the default value forever.
Begin executing a new tags operation if the store supports it.
Begin executing a new tags operation if the store supports it.
Store an item in the cache for the default time.
Increment the value of an item in the cache.
Increment the value of an item in the cache.
Remove all items from the cache.
Details
static
mixed
__callStatic(
string $method,
array $parameters)
Dynamically handle calls to the class.
in TaggedCache at line line 23
void
__construct(
Store $store,
TagSet $tags)
Create a new tagged cache instance.
in Repository at line line 59
void
setEventDispatcher(
Dispatcher $events)
Set the event dispatcher instance.
in Repository at line line 96
mixed
get(
string $key,
mixed $default = null)
Retrieve an item from the cache by key.
in Repository at line line 118
mixed
pull(
string $key,
mixed $default = null)
Retrieve an item from the cache and delete it.
at line line 28
void
put(
string $key,
mixed $value,
DateTime|int $minutes = null)
Store an item in the cache.
in Repository at line line 154
bool
add(
string $key,
mixed $value,
DateTime|int $minutes)
Store an item in the cache if the key does not exist.
in Repository at line line 197
mixed
remember(
string $key,
DateTime|int $minutes,
Closure $callback)
Get an item from the cache, or store the default value.
in Repository at line line 218
mixed
sear(
string $key,
Closure $callback)
Get an item from the cache, or store the default value forever.
in Repository at line line 230
mixed
rememberForever(
string $key,
Closure $callback)
Get an item from the cache, or store the default value forever.
in Repository at line line 267
TaggedCache
section(
string $name)
Begin executing a new tags operation if the store supports it.
in Repository at line line 280
TaggedCache
tags(
array|mixed $names)
Begin executing a new tags operation if the store supports it.
in Repository at line line 324
void
setDefaultCacheTime(
int $minutes)
Set the default cache time in minutes.
in Repository at line line 356
mixed
offsetGet(
string $key)
Retrieve an item from the cache by key.
in Repository at line line 368
void
offsetSet(
string $key,
mixed $value)
Store an item in the cache for the default time.
in TaggedCache at line line 47
void
increment(
string $key,
mixed $value = 1)
Increment the value of an item in the cache.
in TaggedCache at line line 59
void
decrement(
string $key,
mixed $value = 1)
Increment the value of an item in the cache.
in TaggedCache at line line 88
string
taggedItemKey(
string $key)
Get a fully qualified key for a tagged item.