sheknows/ooyala-api-client — pull request #2 by paulredmond (2013-09-25 23:54:00+00:00)
Title: [Feature] Response caching

Provides default response caching functionality. Out of the box, the client configures ArrayCache, so most likely a persistent adapter would be used instead. As an example, a project using this library could provide the following config:

**Still a WIP. Not ready to merge.**

```php
'123',
'api_secret' => '456',
'ooyala.cache' => array(
'max-age' => 300,
'stale-if-error' => 3600,
'plugin' => array(
'storage' => new DefaultCacheStorage(
new DoctrineCacheAdapter(new RedisCache($redis))
),
),
)
));
```