PHP Class ManaPHP\Cache\Adapter\Redis

Inheritance: extends ManaPHP\Component, implements ManaPHP\Cache\AdapterInterface
Datei anzeigen Open project: manaphp/manaphp

Protected Properties

Property Type Description
$_prefix string
$_service string

Public Methods

Method Description
__construct ( string | array | Redis $options = [] ) Redis constructor.
delete ( string $key ) : void
exists ( string $key ) : boolean
get ( string $key ) : string | false
set ( string $key, string $value, integer $ttl ) : void
setDependencyInjector ( ManaPHP\DiInterface $dependencyInjector ) : static

Method Details

__construct() public method

Redis constructor.
public __construct ( string | array | Redis $options = [] )
$options string | array | ConfManaPHP\Cache\Adapter\Redis

delete() public method

public delete ( string $key ) : void
$key string
return void

exists() public method

public exists ( string $key ) : boolean
$key string
return boolean

get() public method

public get ( string $key ) : string | false
$key string
return string | false

set() public method

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

setDependencyInjector() public method

public setDependencyInjector ( ManaPHP\DiInterface $dependencyInjector ) : static
$dependencyInjector ManaPHP\DiInterface
return static

Property Details

$_prefix protected_oe property

protected string $_prefix
return string

$_service protected_oe property

protected string $_service
return string