class File extends Base

锁机制File驱动

Methods

mixed
lock( string $key, bool $wouldBlock = false)

上锁

void
unlock( string $key)

解锁

__destruct()

定义析构函数 自动释放获得的锁

Details

at line line 29
mixed lock( string $key, bool $wouldBlock = false)

上锁

Parameters

string $key 要解锁的锁的key
bool $wouldBlock 是否堵塞

Return Value

mixed

at line line 68
void unlock( string $key)

解锁

Parameters

string $key

Return Value

void

at line line 84
__destruct()

定义析构函数 自动释放获得的锁