Adds `isFromCache` method for cache detection.

 * Adds `isFromCache` method to the AbstractClient and the CachedClient, to allow the user to detect if the cache is being used or not.