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

TaggedCache::setEventDispatcher()

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

TaggedCache::remember()

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

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

TaggedCache::setDefaultCacheTime()

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

TaggedCache::offsetGet()

mixed offsetGet(string $key) Retrieve an item from the cache by key. Parameters string $key Return Value mixed

TaggedCache::offsetSet()

void offsetSet(string $key, mixed $value) Store an item in the cache for the default time. Parameters string $key mixed $value Return Value void

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

TaggedCache::put()

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

TaggedCache::offsetUnset()

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