class CacheAdaptor implements FluidCacheInterface (View source)

Properties

protected PhpFrontend $flowCache

Methods

string
get(string $name)

Gets an entry from the cache or NULL if the entry does not exist.

set(string $name, string $value)

Set or updates an entry identified by $name into the cache.

bool|null
flush(string|null $name = null)

Flushes the cache either by entry or flushes the entire cache if no entry is provided.

FluidCacheWarmerInterface
getCacheWarmer()

Get an instance of FluidCacheWarmerInterface which can warm up template files that would normally be cached on-the-fly to this FluidCacheInterface implementaion.

Details

string get(string $name)

Gets an entry from the cache or NULL if the entry does not exist.

Parameters

string $name

Return Value

string

set(string $name, string $value)

Set or updates an entry identified by $name into the cache.

Parameters

string $name
string $value

bool|null flush(string|null $name = null)

Flushes the cache either by entry or flushes the entire cache if no entry is provided.

Parameters

string|null $name

Return Value

bool|null

FluidCacheWarmerInterface getCacheWarmer()

Get an instance of FluidCacheWarmerInterface which can warm up template files that would normally be cached on-the-fly to this FluidCacheInterface implementaion.

Return Value

FluidCacheWarmerInterface