Class Guzzle\Cache\CacheAdapterFactory

InheritanceGuzzle\Cache\CacheAdapterFactory
ImplementsGuzzle\Common\FromConfigInterface

Generates cache adapters from any number of known cache implementations

Public Methods

Hide inherited methods

MethodDescriptionDefined By
factory() Create a Guzzle cache adapter based on an array of options Guzzle\Cache\CacheAdapterFactory
fromCache() Create a Guzzle cache adapter based on an array of options Guzzle\Cache\CacheAdapterFactory

Method Details

factory() public static method

Create a Guzzle cache adapter based on an array of options

public static Guzzle\Cache\CacheAdapterInterface factory ( $config = [] )
$config array

Array of configuration options

throws Guzzle\Common\Exception\InvalidArgumentException
fromCache() public static method

Create a Guzzle cache adapter based on an array of options

public static Guzzle\Cache\CacheAdapterInterface fromCache ( $cache )
$cache mixed

Cache value

throws Guzzle\Common\Exception\InvalidArgumentException