KeyValueDatabaseExpirableFactory
class KeyValueDatabaseExpirableFactory implements KeyValueExpirableFactoryInterface (View source)
Defines the key/value store factory for the database backend.
Properties
| protected DatabaseStorageExpirable[] | $storages | Holds references to each instantiation so they can be terminated. |
|
| protected SerializationInterface | $serializer | The serialization class to use. |
|
| protected Connection | $connection | The database connection. |
Methods
__construct(SerializationInterface $serializer, Connection $connection)
Constructs this factory object.
get(string $collection)
Constructs a new expirable key/value store for a given collection name.
garbageCollection()
Deletes expired items.
Details
__construct(SerializationInterface $serializer, Connection $connection)
Constructs this factory object.
KeyValueStoreExpirableInterface
get(string $collection)
Constructs a new expirable key/value store for a given collection name.
garbageCollection()
Deletes expired items.