\Horde_Core_Factory_Cache

A Horde_Injector:: based Horde_Cache:: factory.

Copyright 2010-2017 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Summary

Methods
Properties
Constants
create()
__construct()
getDriverName()
$storage
No constants found
_getDriverName()
_getStorage()
$_injector
N/A
No private methods found
No private properties found
N/A

Properties

$storage

$storage : \Horde_Cache_Storage

Contains the storage driver used by the Cache object.

Type

\Horde_Cache_Storage

$_injector

$_injector : \Horde_Injector

The injector.

Type

\Horde_Injector

Methods

create()

create(\Horde_Injector  $injector) : \Horde_Cache

Return the global Horde_Cache instance.

Parameters

\Horde_Injector $injector

Throws

\Horde_Cache_Exception

Returns

\Horde_Cache —

Cache object.

__construct()

__construct(\Horde_Injector  $injector) 

Constructor.

Parameters

\Horde_Injector $injector

The injector to use.

getDriverName()

getDriverName() : string

Return the driver name.

Returns

string —

Lowercase driver name.

_getDriverName()

_getDriverName(string  $driver, string  $base) : string

Return the classname of the driver to load.

Parameters

string $driver

Driver name.

string $base

The base classname.

Throws

\Horde_Exception

Returns

string —

Classname.

_getStorage()

_getStorage(string  $driver, array  $params) : \Horde_Cache_Storage_Base

Create the Cache storage backend.

Parameters

string $driver

The storage driver name.

array $params

The storage backend parameters.

Returns

\Horde_Cache_Storage_Base —

A cache storage backend.