RedisTaggedCache::offsetUnset()

void offsetUnset(string $key) Remove an item from the cache. Parameters string $key Return Value void

RedisTaggedCache::pull()

mixed pull(string $key, mixed $default = null) Retrieve an item from the cache and delete it. Parameters string $key mixed $default Return Value mixed

RedisTaggedCache::put()

void put(string $key, mixed $value, DateTime|float|int $minutes = null) Store an item in the cache. Parameters string $key mixed $value DateTime|float|int $minutes Return Value void

RedisTaggedCache::putMany()

void putMany(array $values, float|int $minutes) Store multiple items in the cache for a given number of minutes. Parameters array $values float|int $minutes Return Value void

RedisTaggedCache::remember()

mixed remember(string $key, DateTime|float|int $minutes, Closure $callback) Get an item from the cache, or store the default value. Parameters string $key DateTime|float|int $minutes Closure $callback Return Value mixed

RedisTaggedCache::rememberForever()

mixed rememberForever(string $key, Closure $callback) Get an item from the cache, or store the default value forever. Parameters string $key Closure $callback Return Value mixed

RedisTaggedCache::sear()

mixed sear(string $key, Closure $callback) Get an item from the cache, or store the default value forever. Parameters string $key Closure $callback Return Value mixed

RedisTaggedCache::setDefaultCacheTime()

void setDefaultCacheTime(float|int $minutes) Set the default cache time in minutes. Parameters float|int $minutes Return Value void

RedisTaggedCache::setEventDispatcher()

void setEventDispatcher(Dispatcher $events) Set the event dispatcher instance. Parameters Dispatcher $events Return Value void

RedisTaggedCache::taggedItemKey()

string taggedItemKey(string $key) Get a fully qualified key for a tagged item. Parameters string $key Return Value string