PHP Class ManaPHP\Cache

Inheritance: extends Component, implements manaphp\CacheInterface
Afficher le fichier Open project: manaphp/manaphp

Méthodes publiques

Свойство Type Description
$adapter ManaPHP\Cache\AdapterInterface

Protected Properties

Свойство Type Description
$_prefix string

Méthodes publiques

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

Method Details

__construct() public méthode

Cache constructor.
public __construct ( string | array | ManaPHP\Cache\AdapterInterface $options = [] )
$options string | array | ManaPHP\Cache\AdapterInterface

delete() public méthode

public delete ( string $key ) : void
$key string
Résultat void

exists() public méthode

public exists ( string $key ) : boolean
$key string
Résultat boolean

get() public méthode

public get ( string $key ) : mixed | false
$key string
Résultat mixed | false

set() public méthode

public set ( string $key, mixed $value, integer $ttl ) : void
$key string
$value mixed
$ttl integer
Résultat void

setDependencyInjector() public méthode

public setDependencyInjector ( ManaPHP\DiInterface $dependencyInjector ) : static
$dependencyInjector ManaPHP\DiInterface
Résultat static

Property Details

$_prefix protected_oe property

protected string $_prefix
Résultat string

$adapter public_oe property

public AdapterInterface,ManaPHP\Cache $adapter
Résultat ManaPHP\Cache\AdapterInterface