PHP Class Stiphle\Storage\Redis

Author: Jacob Christiansen ([email protected])
Inheritance: implements Stiphle\Storage\StorageInterface
Show file Open project: davedevelopment/stiphle Class Usage Examples

Protected Properties

Property Type Description
$lockWaitTimeout
$redisClient

Public Methods

Method Description
__construct ( Client $redisClient )
get ( $key ) {@inheritDoc}
lock ( $key ) {@inheritDoc}
set ( $key, $value ) {@inheritDoc}
setLockWaitTimeout ( $milliseconds ) {@inheritDoc}
unlock ( $key ) {@inheritDoc}

Private Methods

Method Description
getLockKey ( $key )

Method Details

__construct() public method

public __construct ( Client $redisClient )
$redisClient Predis\Client

get() public method

{@inheritDoc}
public get ( $key )

lock() public method

{@inheritDoc}
public lock ( $key )

set() public method

{@inheritDoc}
public set ( $key, $value )

setLockWaitTimeout() public method

{@inheritDoc}
public setLockWaitTimeout ( $milliseconds )

unlock() public method

{@inheritDoc}
public unlock ( $key )

Property Details

$lockWaitTimeout protected property

protected $lockWaitTimeout

$redisClient protected property

protected $redisClient