You are here

function Redis_Cache::isEmpty in Redis 7.2

Same name and namespace in other branches
  1. 7.3 lib/Redis/Cache.php \Redis_Cache::isEmpty()

Checks if a cache bin is empty.

A cache bin is considered empty if it does not contain any valid data for any cache ID.

Return value

TRUE if the cache bin specified is empty.

Overrides DrupalCacheInterface::isEmpty

File

lib/Redis/Cache.php, line 37

Class

Redis_Cache
Cache backend for Redis module.

Code

function isEmpty() {
  return $this->backend
    ->isEmpty();
}