final class CacheConfigDefinition extends AbstractConfigDefinition (View source)

Builds one ordered cache configuration contribution for the typed config pipeline.

Properties

protected mixed[] $data from  AbstractConfigDefinition

Methods

set(string $path, mixed $value)

Replaces one configuration value at a dot-separated path.

append(string $path, mixed $value)

Appends one configuration value at a dot-separated list path.

create()

Starts an empty contribution that can override selected cache settings.

static string

Returns the registry key shared by cache configuration sources.

string
defaultStore(string $store)

Selects the store bound as the generic cache pool.

fileStore(string $path, string $prefix = 'lemonade', int $ttl = 300)

Records the file store path, key prefix, and default lifetime in seconds.

Details

toArray

No description

Return Value

array

fromArrayData

final static AbstractConfigDefinition fromArrayData(array $data)

No description

Parameters

array $data

Return Value

AbstractConfigDefinition

set

protected AbstractConfigDefinition set(string $path, mixed $value)

Replaces one configuration value at a dot-separated path.

Parameters

string $path
mixed $value

Return Value

AbstractConfigDefinition

append

protected AbstractConfigDefinition append(string $path, mixed $value)

Appends one configuration value at a dot-separated list path.

Parameters

string $path
mixed $value

Return Value

AbstractConfigDefinition

create

Starts an empty contribution that can override selected cache settings.

Return Value

CacheConfigDefinition

moduleKey

static string moduleKey()

Returns the registry key shared by cache configuration sources.

Return Value

string

defaultStore

CacheConfigDefinition defaultStore(string $store)

Selects the store bound as the generic cache pool.

Parameters

string $store

Return Value

CacheConfigDefinition

fileStore

CacheConfigDefinition fileStore(string $path, string $prefix = 'lemonade', int $ttl = 300)

Records the file store path, key prefix, and default lifetime in seconds.

Parameters

string $path
string $prefix
int $ttl

Return Value

CacheConfigDefinition