CacheWatcher
class CacheWatcher extends Watcher
Properties
| static protected bool | $eventsEnabled | Indicates if the cache event is enabled. |
Methods
Details
in
Watcher at line 16
__construct(array $options = [])
Create a new watcher instance.
at line 28
void
register(Application $app)
Register the watcher.
at line 49
static void
enableCacheEvents(Application $app)
Enable Cache events.
Boot-only. Must be called before the Cache is initialized. Mutates process-global config and a static flag; runtime use races across coroutines.
at line 62
void
recordCacheHit(CacheHit $event)
Record a cache key was found.
at line 78
void
recordCacheMissed(CacheMissed $event)
Record a missing cache key.
at line 93
void
recordKeyWritten(KeyWritten $event)
Record a cache key was updated.
at line 110
void
recordKeyForgotten(KeyForgotten $event)
Record a cache key was forgotten / removed.
at line 143
protected int|null
formatExpiration(KeyWritten $event)
No description
at line 163
static void
flushState()
Flush all static state.