class DoctrineCacheDriverDecorator implements DriverInterface

Class DoctrineCacheDriverDecorator

Properties

protected CacheProvider $cacheProvider

Methods

__construct(CacheProvider $cacheProvider)

DoctrineCacheDriverDecorator constructor.

mixed
fetch(string $id)

No description

bool
contains(int $id)

No description

bool
save(string $id, mixed $data, int $lifeTime = 0)

No description

bool
delete(string $id)

Deletes a cache entry.

Details

at line 23
__construct(CacheProvider $cacheProvider)

DoctrineCacheDriverDecorator constructor.

Parameters

CacheProvider $cacheProvider

at line 33
mixed fetch(string $id)

Parameters

string $id

Return Value

mixed

at line 43
bool contains(int $id)

Parameters

int $id

Return Value

bool

at line 55
bool save(string $id, mixed $data, int $lifeTime = 0)

Parameters

string $id
mixed $data
int $lifeTime

Return Value

bool True if saved, false otherwise

at line 67
bool delete(string $id)

Deletes a cache entry.

Parameters

string $id The cache id.

Return Value

bool TRUE if the cache entry was successfully deleted, FALSE otherwise.