method to check if the cache provider contains given key or not.
key
static bool containsKey(String key) { ensureCacheProvider(); assert(key != null); return _cacheProvider.containsKey(key); }