CacheEventMutex
class CacheEventMutex implements EventMutex, CacheAware
Properties
| string|null | $store | The cache store that should be used. |
Methods
Details
at line 24
__construct(Factory $cache)
Create a new overlapping strategy.
at line 32
bool
create(Event $event)
Attempt to obtain an event mutex for the given event.
at line 53
bool
exists(Event $event)
Determine if an event mutex exists for the given event.
at line 70
void
forget(Event $event)
Clear the event mutex for the given event.
at line 91
protected bool
shouldUseLocks(Store $store)
Determine if the given store should use locks for cache event mutexes.
at line 104
CacheAware
useStore(string $store)
Specify the cache store that should be used.
Mutates the shared mutex instance for the worker lifetime; per-request use races across coroutines.