class QueueDatabaseFactory (View source)

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

Properties

protected Connection $connection

The database connection.

Methods

__construct(Connection $connection)

Constructs this factory object.

get(string $name)

Constructs a new queue object for a given name.

Details

__construct(Connection $connection)

Constructs this factory object.

Parameters

Connection $connection

The Connection object containing the key-value tables.

DatabaseQueue get(string $name)

Constructs a new queue object for a given name.

Parameters

string $name

The name of the collection holding key and value pairs.

Return Value

DatabaseQueue

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