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

# Class CachingConfigLoader

Decorator that adds caching to a service description loader

  Guzzle\Service\CachingConfigLoader implements Guzzle\Service\ConfigLoaderInterface

Namespace: Guzzle\Service
Located at Guzzle/Service/CachingConfigLoader.php

## Methods summary

- `public` `__construct ( Guzzle\Service\ConfigLoaderInterface $loader, Guzzle\Cache\CacheAdapterInterface $cache )`
- `public` `load ( mixed $config, array $options = array() )`

  Loads configuration data and returns an array of the loaded result

## Methods detail

# `public`
`__construct( `Guzzle\Service\ConfigLoaderInterface` $loader, `Guzzle\Cache\CacheAdapterInterface` $cache )`

#### Parameters

$loader
  ``Guzzle\Service\ConfigLoaderInterface``
  $loader Loader used to load the config when there is a cache miss
$cache
  ``Guzzle\Cache\CacheAdapterInterface``
  $cache Object used to cache the loaded result

# `public mixed`
`load( mixed $config, array $options = array() )`

Loads configuration data and returns an array of the loaded result

#### Parameters

$config
  `mixed`
  $config Data to load (filename or array of data)
$options
  `array`
  $options Array of options to use when loading

#### Returns

`mixed`

#### Implementation of

`Guzzle\Service\ConfigLoaderInterface::load()`

### Magic methods summary

## Properties summary

`protected `Guzzle\Service\ConfigLoaderInterface`` | $loader | #
`protected `Guzzle\Cache\CacheAdapterInterface`` | $cache | #