NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# Class CacheAdapterFactory

Generates cache adapters from any number of known cache implementations

  Guzzle\Cache\CacheAdapterFactory implements Guzzle\Common\FromConfigInterface

Namespace: Guzzle\Cache
Located at Guzzle/Cache/CacheAdapterFactory.php

## Methods summary

- `public static` `fromCache ( mixed $cache )`

  Create a Guzzle cache adapter based on an array of options

## Methods detail

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

Create a Guzzle cache adapter based on an array of options

#### Parameters

$cache
  `mixed`
  $cache Cache value

#### Returns

``Guzzle\Cache\CacheAdapterInterface``

#### Throws

``Guzzle\Common\Exception\InvalidArgumentException``

### Methods inherited from Guzzle\Common\FromConfigInterface

`factory()`

### Magic methods summary