PHP Class ManaPHP\Cache\Adapter\File

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

Protected Properties

Property Type Description
$_dir string
$_extension string
$_level integer

Public Methods

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

Protected Methods

Method Description
_getFileName ( string $key ) : string

Method Details

__construct() public method

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

_getFileName() protected method

protected _getFileName ( string $key ) : string
$key string
return string

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

$_dir protected_oe property

protected string $_dir
return string

$_extension protected_oe property

protected string $_extension
return string

$_level protected_oe property

protected int $_level
return integer