CacheConfigDefinition
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
Replaces one configuration value at a dot-separated path.
Appends one configuration value at a dot-separated list path.
Starts an empty contribution that can override selected cache settings.
Returns the registry key shared by cache configuration sources.
Selects the store bound as the generic cache pool.
Records the file store path, key prefix, and default lifetime in seconds.
Details
toArray
array
toArray()
No description
set
protected AbstractConfigDefinition
set(string $path, mixed $value)
Replaces one configuration value at a dot-separated path.
append
protected AbstractConfigDefinition
append(string $path, mixed $value)
Appends one configuration value at a dot-separated list path.
create
static CacheConfigDefinition
create()
Starts an empty contribution that can override selected cache settings.
moduleKey
static string
moduleKey()
Returns the registry key shared by cache configuration sources.
defaultStore
CacheConfigDefinition
defaultStore(string $store)
Selects the store bound as the generic cache pool.
fileStore
CacheConfigDefinition
fileStore(string $path, string $prefix = 'lemonade', int $ttl = 300)
Records the file store path, key prefix, and default lifetime in seconds.