Class: I2CE MagicDataStorageMemcached (4.0.6)
This article describes the class I2CE_MagicDataStorageMemcached .
- Extends the class: I2CE_MagicDataStorage.
- Location: Part of the module I2CE in the package I2CE 4.0.6-release
- Source: Defined in the file lib/I2CE_MagicDataStorageMemcached.php on line 34
Configuration class to lookup and save configuration options.
Variables
$memcached
@protected var Memcached $memcached. The memcached instance
- Defined in i2ce/lib/I2CE_MagicDataStorageMemcached.php on line 41
- Type: protected $memcached
Methods
__construct()
Create a new instance for magic data storage.
- Defined in i2ce/lib/I2CE_MagicDataStorageMemcached.php on line 47
- Signature: public function __construct($name)
- Parameters:
- string $name
The name assigned to this storage object
- string $name
clear()
Delete all APC keys associated with this storage object.
- Defined in i2ce/lib/I2CE_MagicDataStorageMemcached.php on line 155
- Signature: public function clear()
- Returns: boolean
destroy()
Erases the given I2CE_MagicDataNode from the storage mechanism @param I2CE_MagicDataNode
- Defined in i2ce/lib/I2CE_MagicDataStorageMemcached.php on line 135
- Signature: public function destroy($node)
- Parameters:
- $node
getKey()
Return the APC prefix for storing variables. @param string $type The variable type (path/type/value/children)
- Defined in i2ce/lib/I2CE_MagicDataStorageMemcached.php on line 82
- Signature: public function getKey($node)
- Parameters:
- $node
- Returns: string
isAvailable()
Returns true if this storage mechanism is ready to be used. false otherwise.
- Defined in i2ce/lib/I2CE_MagicDataStorageMemcached.php on line 60
- Signature: public function isAvailable()
retrieve()
Retrieve the given I2CE_MagicDataNode value and type.
- Defined in i2ce/lib/I2CE_MagicDataStorageMemcached.php on line 123
- Signature: public function retrieve($node)
- Parameters:
- I2CE_MagicDataNode $node
- Returns: array
store()
Store the given I2CE_MagicDataNode into APC
- Defined in i2ce/lib/I2CE_MagicDataStorageMemcached.php on line 91
- Signature: public function store($node)
- Parameters:
- I2CE_MagicDataNode $node
- Returns: boolean.
True on sucess
Inherited Methods
getHash()
This public method is inherited from I2CE_MagicDataStorage->getHash()
Inherited Variables
$name
Theis protected variable is inherited from I2CE_MagicDataStorage->$name