CacheSchedulingMutex

class CacheSchedulingMutex implements SchedulingMutex, CacheAware (View source)

Properties

Factory $cache The cache factory implementation.
string|null $store The cache store that should be used.

Methods

void __construct(Factory $cache)

Create a new scheduling strategy.

bool create(Event $event, DateTimeInterface $time)

Attempt to obtain a scheduling mutex for the given event.

bool exists(Event $event, DateTimeInterface $time)

Determine if a scheduling mutex exists for the given event.

$this useStore(string $store)

Specify the cache store that should be used.

Details

void __construct(Factory $cache)

Create a new scheduling strategy.

Parameters

Factory $cache

Return Value

void

bool create(Event $event, DateTimeInterface $time)

Attempt to obtain a scheduling mutex for the given event.

Parameters

Event $event
DateTimeInterface $time

Return Value

bool

bool exists(Event $event, DateTimeInterface $time)

Determine if a scheduling mutex exists for the given event.

Parameters

Event $event
DateTimeInterface $time

Return Value

bool

$this useStore(string $store)

Specify the cache store that should be used.

Parameters

string $store

Return Value

$this

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Console/Scheduling/CacheSchedulingMutex.html