Returns true if the persistent storage contains the given key.
key
bool containsKey(String key) => _preferenceCache.containsKey(key);