\Mine\Crontab\MutexRedisTaskMutex

Summary

Methods
Properties
Constants
__construct()
create()
exists()
remove()
No public properties found
No constants found
getMutexName()
No protected properties found
N/A
No private methods found
$redisFactory
N/A

Properties

$redisFactory

$redisFactory : \Hyperf\Redis\RedisFactory

Type

\Hyperf\Redis\RedisFactory

Methods

__construct()

__construct(\Hyperf\Redis\RedisFactory  $redisFactory) 

Parameters

\Hyperf\Redis\RedisFactory $redisFactory

create()

create(\Mine\Crontab\MineCrontab  $crontab) : boolean

Attempt to obtain a task mutex for the given crontab.

Parameters

\Mine\Crontab\MineCrontab $crontab

Returns

boolean

exists()

exists(\Mine\Crontab\MineCrontab  $crontab) : boolean

Determine if a task mutex exists for the given crontab.

Parameters

\Mine\Crontab\MineCrontab $crontab

Returns

boolean

remove()

remove(\Mine\Crontab\MineCrontab  $crontab) 

Clear the task mutex for the given crontab.

Parameters

\Mine\Crontab\MineCrontab $crontab