Documentation

Horde_Core_Factory_Cache extends Horde_Core_Factory_Injector
in package

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.

Tags
category

Horde

author

Michael Slusarz slusarz@horde.org

license

http://www.horde.org/licenses/lgpl21 LGPL 2.1

Table of Contents

Properties

$storage  : Horde_Cache_Storage
Contains the storage driver used by the Cache object.
$_injector  : Horde_Injector
The injector.

Methods

__construct()  : mixed
Constructor.
create()  : Horde_Cache
Return the global Horde_Cache instance.
getDriverName()  : string
Return the driver name.
_getDriverName()  : string
Return the classname of the driver to load.
_getStorage()  : Horde_Cache_Storage_Base
Create the Cache storage backend.

Properties

$storage

Contains the storage driver used by the Cache object.

public Horde_Cache_Storage $storage
Tags
since
2.5.0

$_injector

The injector.

protected Horde_Injector $_injector

Methods

__construct()

Constructor.

public __construct(Horde_Injector $injector) : mixed
Parameters
$injector : Horde_Injector

The injector to use.

create()

Return the global Horde_Cache instance.

public create(Horde_Injector $injector) : Horde_Cache
Parameters
$injector : Horde_Injector
Tags
throws
Horde_Cache_Exception
Return values
Horde_Cache

Cache object.

getDriverName()

Return the driver name.

public getDriverName() : string
Tags
since
2.5.0
Return values
string

Lowercase driver name.

_getDriverName()

Return the classname of the driver to load.

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

Driver name.

$base : string

The base classname.

Tags
throws
Horde_Exception
Return values
string

Classname.

_getStorage()

Create the Cache storage backend.

protected _getStorage(string $driver, array<string|int, mixed> $params) : Horde_Cache_Storage_Base
Parameters
$driver : string

The storage driver name.

$params : array<string|int, mixed>

The storage backend parameters.

Return values
Horde_Cache_Storage_Base

A cache storage backend.


        
On this page

Search results