PHP Class Stiphle\Storage\Apc

...
Author: Dave Marshall ([email protected])
Inheritance: implements Stiphle\Storage\StorageInterface
显示文件 Open project: davedevelopment/stiphle

Protected Properties

Property Type Description
$lockWaitTimeout integer
$sleep Time to sleep when attempting to get lock in microseconds
$ttl integer

Public Methods

Method Description
get ( string $key ) : integer Get last modified
lock ( $key ) : void Lock
set ( string $key, mixed $value ) : void set
setLockWaitTimeout ( integer $milliseconds ) Set lock wait timeout
setSleep ( $microseconds ) : void Set the sleep time in microseconds
setTtl ( $microseconds ) : void Set the ttl for the apc records in seconds
unlock ( $key ) : void Unlock

Method Details

get() public method

Get last modified
public get ( string $key ) : integer
$key string
return integer

lock() public method

If we're using storage, we might have multiple requests coming in at once, so we lock the storage
public lock ( $key ) : void
return void

set() public method

set
public set ( string $key, mixed $value ) : void
$key string
$value mixed
return void

setLockWaitTimeout() public method

Set lock wait timeout
public setLockWaitTimeout ( integer $milliseconds )
$milliseconds integer

setSleep() public method

Set the sleep time in microseconds
public setSleep ( $microseconds ) : void
return void

setTtl() public method

Set the ttl for the apc records in seconds
public setTtl ( $microseconds ) : void
return void

unlock() public method

Unlock
public unlock ( $key ) : void
return void

Property Details

$lockWaitTimeout protected_oe property

protected int $lockWaitTimeout
return integer

$sleep protected_oe property

Time to sleep when attempting to get lock in microseconds
protected $sleep

$ttl protected_oe property

protected int $ttl
return integer