class Horde_Cache_Storage_Apc extends Horde_Cache_Storage_Base
{
/**
+ * Constructor.
+ *
+ * @param array $params Optional parameters:
+ * <pre>
+ * 'prefix' - (string) The prefix to use for the cache keys.
+ * DEFAULT: ''
+ * </pre>
+ */
+ public function __construct(array $params = array())
+ {
+ parent::__construct(array_merge(array(
+ 'prefix' => '',
+ ), $params));
+ }
+
+ /**
*/
public function get($key, $lifetime)
{
class Horde_Cache_Storage_Eaccelerator extends Horde_Cache_Storage_Base
{
/**
+ * Constructor.
+ *
+ * @param array $params Optional parameters:
+ * <pre>
+ * 'prefix' - (string) The prefix to use for the cache keys.
+ * DEFAULT: ''
+ * </pre>
+ *
* @throws Horde_Cache_Exception
*/
public function __construct(array $params = array())
throw new Horde_Cache_Exception('eAccelerator must be compiled with support for shared memory to use as caching backend.');
}
- parent::__construct($params);
+ parent::__construct(array_merge(array(
+ 'prefix' => '',
+ ), $params));
}
/**
*
* @param array $params Parameter array:
* <pre>
- * 'memcache' - (Horde_Memcache) A Horde_Memcache object.
+ * 'memcache' - (Horde_Memcache) [REQUIRED] A Horde_Memcache object.
+ * 'prefix' - (string) The prefix to use for the cache keys.
+ * DEFAULT: ''
* </pre>
*
* @throws InvalidArgumentException
*/
- public function __construct($params = array())
+ public function __construct(array $params = array())
{
if (!isset($params['memcache'])) {
throw new InvalidArgumentException('Missing memcache object');
$this->_memcache = $params['memcache'];
unset($params['memcache']);
- parent::__construct($params);
+ parent::__construct(array_merge(array(
+ 'prefix' => '',
+ ), $params));
}
/**
class Horde_Cache_Storage_Xcache extends Horde_Cache_Storage_Base
{
/**
+ * Constructor.
+ *
+ * @param array $params Optional parameters:
+ * <pre>
+ * 'prefix' - (string) The prefix to use for the cache keys.
+ * DEFAULT: ''
+ * </pre>
+ */
+ public function __construct(array $params = array())
+ {
+ parent::__construct(array_merge(array(
+ 'prefix' => '',
+ ), $params));
+ }
+
+ /**
*/
public function get($key, $lifetime)
{