PHP Class ManaPHP\Cache\Adapter\Db

Inheritance: extends ManaPHP\Component, implements ManaPHP\Cache\AdapterInterface
显示文件 Open project: manaphp/manaphp

Protected Properties

Property Type Description
$_model string

Public Methods

Method Description
__construct ( string | array $options = [] ) Db constructor.
delete ( string $key ) : void
exists ( string $key ) : boolean
get ( string $key ) : string | false
set ( string $key, string $value, integer $ttl ) : void

Method Details

__construct() public method

Db constructor.
public __construct ( string | array $options = [] )
$options string | array

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

Property Details

$_model protected_oe property

protected string $_model
return string