Open Monograph Press
3.3.0
|
Static Public Member Functions | |
static | factory ($config=array()) |
static | fromCache ($cache) |
Generates cache adapters from any number of known cache implementations
Definition at line 15 of file CacheAdapterFactory.php.
|
static |
Create a Guzzle cache adapter based on an array of options
array | $config | Array of configuration options |
InvalidArgumentException |
Implements Guzzle\Common\FromConfigInterface.
Definition at line 52 of file CacheAdapterFactory.php.
References Guzzle\Common\Version\warn().
|
static |
Create a Guzzle cache adapter based on an array of options
mixed | $cache | Cache value |
InvalidArgumentException |
Definition at line 25 of file CacheAdapterFactory.php.
Referenced by Guzzle\Plugin\Cache\DefaultCacheStorage\__construct(), Guzzle\Plugin\Cache\CachePlugin\__construct(), Guzzle\Tests\Cache\CacheAdapterFactoryTest\testCreatesNullCacheAdapterByDefault(), Guzzle\Tests\Cache\CacheAdapterFactoryTest\testEnsuresConfigIsObject(), and Guzzle\Tests\Cache\CacheAdapterFactoryTest\testEnsuresKnownType().