class MemcachedConnector (View source)

Methods

Memcached
connect(array $servers, string|null $connectionId = null, array $options = [], array $credentials = [])

Create a new Memcached connection.

Memcached
getMemcached(string|null $connectionId, array $credentials, array $options)

Get a new Memcached instance.

Memcached
createMemcachedInstance(string|null $connectionId)

Create the Memcached instance.

void
setCredentials(Memcached $memcached, array $credentials)

Set the SASL credentials on the Memcached connection.

Details

Memcached connect(array $servers, string|null $connectionId = null, array $options = [], array $credentials = [])

Create a new Memcached connection.

Parameters

array $servers
string|null $connectionId
array $options
array $credentials

Return Value

Memcached

protected Memcached getMemcached(string|null $connectionId, array $credentials, array $options)

Get a new Memcached instance.

Parameters

string|null $connectionId
array $credentials
array $options

Return Value

Memcached

protected Memcached createMemcachedInstance(string|null $connectionId)

Create the Memcached instance.

Parameters

string|null $connectionId

Return Value

Memcached

protected void setCredentials(Memcached $memcached, array $credentials)

Set the SASL credentials on the Memcached connection.

Parameters

Memcached $memcached
array $credentials

Return Value

void