class Cache

Class Cache

Properties

protected CacheDriverFactory $cacheDriverFactory
protected string $namespace
protected $driver

Methods

__construct(CacheDriverFactory $cacheDriverFactory, string $namespace)

Cache constructor.

bool|array|string
fetch(string $cacheId)

No description

bool
contains(string $cacheId)

No description

bool
save(string $cacheId, mixed $data, int $lifetime = 0)

No description

bool
delete(string $cacheId)

No description

bool
deleteAll()

No description

bool
flushAll()

No description

CacheProvider
getDriver()

No description

Details

at line 31
__construct(CacheDriverFactory $cacheDriverFactory, string $namespace)

Cache constructor.

Parameters

CacheDriverFactory $cacheDriverFactory
string $namespace

at line 42
bool|array|string fetch(string $cacheId)

Parameters

string $cacheId

Return Value

bool|array|string

at line 52
bool contains(string $cacheId)

Parameters

string $cacheId

Return Value

bool

at line 64
bool save(string $cacheId, mixed $data, int $lifetime = 0)

Parameters

string $cacheId
mixed $data
int $lifetime

Return Value

bool

at line 74
bool delete(string $cacheId)

Parameters

string $cacheId

Return Value

bool

at line 82
bool deleteAll()

Return Value

bool

at line 90
bool flushAll()

Return Value

bool

at line 98
CacheProvider getDriver()

Return Value

CacheProvider