Method | Description | |
---|---|---|
getLocker ( string | null $useCache = null ) : |
获取Lock实例 | |
lock ( string $key, boolean $wouldBlock = false ) : mixed | 上锁 | |
setExpire ( integer $expire = 100 ) : |
设置锁的过期时间 | |
unlock ( string $key ) : void | 解锁 |