You are here

public function PersistableCache::contains in RESTful 7.2

Checks if the cache contains the key.

Parameters

string $key: The key to check.

Return value

bool TRUE if the key is present in the cache. FALSE otherwise.

Overrides PersistableCacheInterface::contains

1 call to PersistableCache::contains()
PersistableCache::get in src/Util/PersistableCache.php
Gets the memory reference of the cached item.

File

src/Util/PersistableCache.php, line 47
Contains \Drupal\restful\Util\PersistableCache.

Class

PersistableCache

Namespace

Drupal\restful\Util

Code

public function contains($key) {
  return isset($this->data[$key]);
}