Class MemcachedResourceManager

Summary

Fully Qualified Name: Laminas\Cache\Storage\Adapter\MemcachedResourceManager

Description

This is a resource manager for memcached

Methods

Name Description Defined By
addServer() Add one server MemcachedResourceManager
addServers() Add servers MemcachedResourceManager
getLibOption() Get one Libmemcached option MemcachedResourceManager
getLibOptions() Get Libmemcached options MemcachedResourceManager
getPersistentId() Get the persistent id MemcachedResourceManager
getResource() Gets a memcached resource MemcachedResourceManager
getServers() Get servers MemcachedResourceManager
hasResource() Check if a resource exists MemcachedResourceManager
removeResource() Remove a resource MemcachedResourceManager
setLibOption() Set one Libmemcached option MemcachedResourceManager
setLibOptions() Set Libmemcached options MemcachedResourceManager
setPersistentId() Set the persistent id MemcachedResourceManager
setResource() Set a resource MemcachedResourceManager
setServers() Set servers MemcachedResourceManager

Method Details

addServer()

Add one server

Parameter Name Type Description
$id string
$server string|array

Returns: \MemcachedResourceManager

addServers()

Add servers

Parameter Name Type Description
$id string
$servers string|array

Returns: \MemcachedResourceManager Provides a fluent interface

getLibOption()

Get one Libmemcached option

Parameter Name Type Description
$id string
$key string|int

Returns: mixed

getLibOptions()

Get Libmemcached options

Parameter Name Type Description
$id string

Returns: array

getPersistentId()

Get the persistent id

Parameter Name Type Description
$id string

Returns: string

getResource()

Gets a memcached resource

Parameter Name Type Description
$id string

Returns: \MemcachedResource

getServers()

Get servers

Parameter Name Type Description
$id string

Returns: array array('host' => <host>, 'port' => <port>, 'weight' => <weight>)

hasResource()

Check if a resource exists

Parameter Name Type Description
$id string

Returns: bool

removeResource()

Remove a resource

Parameter Name Type Description
$id string

Returns: \MemcachedResourceManager Provides a fluent interface

setLibOption()

Set one Libmemcached option

Parameter Name Type Description
$id string
$key string|int
$value mixed

Returns: \MemcachedResourceManager Fluent interface

setLibOptions()

Set Libmemcached options

Parameter Name Type Description
$id string
$libOptions array

Returns: \MemcachedResourceManager Provides a fluent interface

setPersistentId()

Set the persistent id

Parameter Name Type Description
$id string
$persistentId string

Returns: \MemcachedResourceManager Provides a fluent interface

setResource()

Set a resource

Parameter Name Type Description
$id string
$resource array|\Traversable|\MemcachedResource

Returns: \MemcachedResourceManager Provides a fluent interface

setServers()

Set servers

$servers can be an array list or a comma separated list of servers. One server in the list can be descripted as follows:

Parameter Name Type Description
$id string
$servers string|array

Returns: \MemcachedResourceManager Provides a fluent interface

Top