CacheEventMutex
class CacheEventMutex implements EventMutex (View source)
Properties
Factory | $cache | The cache repository implementation. |
|
string|null | $store | The cache store that should be used. |
Methods
void
$this
useStore(string $store)
Specify the cache store that should be used.
Details
void
__construct(Factory $cache)
Create a new overlapping strategy.
bool
create(Event $event)
Attempt to obtain an event mutex for the given event.
bool
exists(Event $event)
Determine if an event mutex exists for the given event.
void
forget(Event $event)
Clear the event mutex for the given event.
$this
useStore(string $store)
Specify the cache store that should be used.