RedisTaggedCache::flush()

void flush() Remove all items from the cache. Return Value void

RedisTaggedCache::decrement()

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

RedisTaggedCache::add()

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

RedisTaggedCache class RedisTaggedCache extends TaggedCache (View source) Traits RetrievesMultipleKeys Macroable

RedisStore::__construct()

void __construct(Database $redis, string $prefix = '', string $connection = 'default') Create a new Redis store. Parameters Database $redis string $prefix string $connection Return Value void

RedisStore::tags()

TaggedCache tags(array|mixed $names) Begin executing a new tags operation. Parameters array|mixed $names Return Value TaggedCache

RedisStore::setPrefix()

void setPrefix(string $prefix) Set the cache key prefix. Parameters string $prefix Return Value void

RedisStore::setConnection()

void setConnection(string $connection) Set the connection name to be used. Parameters string $connection Return Value void

RedisStore::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

RedisStore::put()

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