\Phile\Plugin\Phile\PhpFastCachePhileToPsr16CacheAdapter

Class PhpFastCache

Summary

Methods
Properties
Constants
__construct()
has()
get()
set()
delete()
clean()
No public properties found
SLUG_PREFIX
SLUG
slug()
$cacheEngine
N/A
No private methods found
No private properties found
N/A

Constants

SLUG_PREFIX

SLUG_PREFIX

SLUG

SLUG

Properties

$cacheEngine

$cacheEngine :\Psr\SimpleCache\CacheInterface

Type

\Psr\SimpleCache\CacheInterface—the cache engine

Methods

__construct()

__construct(\Psr\SimpleCache\CacheInterface  $cacheEngine)

the constructor

Parameters

\Psr\SimpleCache\CacheInterface $cacheEngine

has()

has(string  $key): boolean

method to check if cache has entry for given key

Parameters

string $key

Returns

boolean

get()

get(string  $key): mixed|null

method to get cache entry

Parameters

string $key

Returns

mixed|null

set()

set(string  $key,mixed  $value,integer  $time = 300,array  $options = array()): mixed|void

method to set cache entry

Parameters

string $key
mixed $value
integer $time
array $options

deprecated

Returns

mixed|void

delete()

delete(string  $key,array  $options = array()): mixed|void

method to delete cache entry

Parameters

string $key
array $options

deprecated

Returns

mixed|void

clean()

clean()

clean complete cache and delete all cached entries

slug()

slug(string  $key): string

replaces chars forbidden in PSR-16 cache-keys

Parameters

string $key

key to slug

Returns

string —

$key slugged key