class CreateSwooleTimers extends BaseListener

Methods

__construct(Container $container, SwooleTimer $timer)

No description

swooleStores()

No description

void
handle(AfterWorkerStart $event)

Create timers for all configured Swoole cache stores.

bool
shouldRegisterTimers(AfterWorkerStart $event)

Determine if this worker should own Swoole cache timers.

store(string $name)

Get a Swoole cache store.

Details

at line 16
__construct(Container $container, SwooleTimer $timer)

No description

Parameters

Container $container
SwooleTimer $timer

in BaseListener at line 16
protected Collection swooleStores()

No description

Return Value

Collection

at line 24
void handle(AfterWorkerStart $event)

Create timers for all configured Swoole cache stores.

Parameters

AfterWorkerStart $event

Return Value

void

at line 72
protected bool shouldRegisterTimers(AfterWorkerStart $event)

Determine if this worker should own Swoole cache timers.

Parameters

AfterWorkerStart $event

Return Value

bool

at line 80
protected SwooleStore store(string $name)

Get a Swoole cache store.

Parameters

string $name

Return Value

SwooleStore