Added APC caching support

An ApcCache class for caching to apc.