void flush() Remove all items from the cache. Return Value void
int|bool decrement(string $key, mixed $value = 1) Decrement the value of an item in the cache. Parameters string $key mixed $value Return Value int|bool
bool add(string $key, mixed $value, DateTime|float|int $minutes) Store an item in the cache if the key does not exist. Parameters string $key mixed $value DateTime|float|int $minutes Return Value bool
RedisTaggedCache class RedisTaggedCache extends TaggedCache (View source) Traits RetrievesMultipleKeys Macroable
void __construct(Database $redis, string $prefix = '', string $connection = 'default') Create a new Redis store. Parameters Database $redis string $prefix string $connection Return Value void
TaggedCache tags(array|mixed $names) Begin executing a new tags operation. Parameters array|mixed $names Return Value TaggedCache
void setPrefix(string $prefix) Set the cache key prefix. Parameters string $prefix Return Value void
void setConnection(string $connection) Set the connection name to be used. Parameters string $connection Return Value void
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
void put(string $key, mixed $value, float|int $minutes) Store an item in the cache for a given number of minutes. Parameters string $key mixed $value float|int $minutes Return Value void
Page 284 of 996