\Guzzle\CacheCacheAdapterFactory

Generates cache adapters from any number of known cache implementations

Summary

Methods
Properties
Constants
fromCache()
factory()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
createObject()
No private properties found
N/A

Methods

fromCache()

fromCache(mixed  $cache) : \Guzzle\Cache\CacheAdapterInterface

Create a Guzzle cache adapter based on an array of options

Parameters

mixed $cache

Cache value

Throws

\Guzzle\Common\Exception\InvalidArgumentException

Returns

\Guzzle\Cache\CacheAdapterInterface

factory()

factory(array  $config = array()) : \Guzzle\Cache\CacheAdapterInterface

Create a Guzzle cache adapter based on an array of options

Parameters

array $config

Array of configuration options

Throws

\Guzzle\Common\Exception\InvalidArgumentException

Returns

\Guzzle\Cache\CacheAdapterInterface

createObject()

createObject(string  $className, array  $args = null) : mixed

Create a class using an array of constructor arguments

Parameters

string $className

Class name

array $args

Arguments for the class constructor

Throws

\Guzzle\Common\Exception\RuntimeException

Returns

mixed