PHP Class MatthiasMullie\Scrapbook\Psr16\SimpleCache

Author: Matthias Mullie ([email protected])
Inheritance: implements Psr\SimpleCache\CacheInterface
Show file Open project: matthiasmullie/scrapbook

Protected Properties

Property Type Description
$store MatthiasMullie\Scrapbook\KeyValueStore

Public Methods

Method Description
__construct ( MatthiasMullie\Scrapbook\KeyValueStore $store )
clear ( )
delete ( $key )
deleteMultiple ( $keys )
get ( $key, $default = null )
getMultiple ( $keys, $default = null )
has ( $key )
set ( $key, $value, $ttl = null )
setMultiple ( $items, $ttl = null )

Protected Methods

Method Description
ttl ( null | integer | DateInterva\DateInterval $ttl ) : integer Accepts all TTL inputs valid in PSR-16 (null|int|DateInterval) and converts them into TTL for KeyValueStore (int).

Method Details

__construct() public method

public __construct ( MatthiasMullie\Scrapbook\KeyValueStore $store )
$store MatthiasMullie\Scrapbook\KeyValueStore

clear() public method

public clear ( )

delete() public method

public delete ( $key )

deleteMultiple() public method

public deleteMultiple ( $keys )

get() public method

public get ( $key, $default = null )

getMultiple() public method

public getMultiple ( $keys, $default = null )

has() public method

public has ( $key )

set() public method

public set ( $key, $value, $ttl = null )

setMultiple() public method

public setMultiple ( $items, $ttl = null )

ttl() protected method

Accepts all TTL inputs valid in PSR-16 (null|int|DateInterval) and converts them into TTL for KeyValueStore (int).
protected ttl ( null | integer | DateInterva\DateInterval $ttl ) : integer
$ttl null | integer | DateInterva\DateInterval
return integer

Property Details

$store protected property

protected KeyValueStore,MatthiasMullie\Scrapbook $store
return MatthiasMullie\Scrapbook\KeyValueStore