Adding support to memcache and apc cache