class KeyValueMemoryFactory implements KeyValueFactoryInterface (View source)

Defines the key/value store factory for the memory backend.

Properties

protected array $collections

An array of keyvalue collections that are stored in memory.

Methods

get(string $collection)

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

Details

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.