class KeyValueExpirableFactory extends KeyValueFactory implements KeyValueExpirableFactoryInterface (View source)

Defines the key/value store factory.

Constants

SPECIFIC_PREFIX

DEFAULT_SETTING

DEFAULT_SERVICE

Properties

protected array $stores

Instantiated stores, keyed by collection name.

from  KeyValueFactory
protected ContainerInterface $container

The service container.

from  KeyValueFactory
protected array $options

Collection-specific storage override options.

from  KeyValueFactory

Methods

__construct(ContainerInterface $container, array $options = [])

No description

get(string $collection)

Constructs a new key/value store for a given collection name.

Details

__construct(ContainerInterface $container, array $options = [])

No description

Parameters

ContainerInterface $container

The service container.

array $options

(optional) Collection-specific storage override options.

KeyValueStoreInterface get(string $collection)

Constructs a new key/value store for a given collection name.

Parameters

string $collection

The name of the collection holding key and value pairs.

Return Value

KeyValueStoreInterface

A key/value store implementation for the given $collection.