GroupCommerce/sdk.php — pull request #33 by jacobangel (2012-05-22 17:00:20+00:00)
Title: Updating the Caching library

Local file cache isn't going to be awesome forever; we're going to
want to use APC at some point or even memcached/elasticache to cache
our data across multiple environments. So I made a few changes.

- Publisher API now has a setting for the name of the caching class
- `GCCache` is now an interface instead of a class
- `GCFileCache` now implements `GCCache`
- Fixed a few issues with SDK caching in GCFileCaching. Updated the
getCache to factor in the keys.
- GC\WebRequest now has a method `get_cache_key`, which creates the key
for caching. It is NOT run through sha1. Key encoding is left up to
the caching class.

#### Reviewers
@JoeCianflone @billrob

#### Questions
Beyond normal review, where should I be running caching keys through the sha1 function?