You are here

public function CacheObjectAPIWrapper::isEmpty in Cache Object API 7

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

./cacheobject.inc, line 149
Provides Cache Object API wrapper class.

Class

CacheObjectAPIWrapper
Provides a cache class exposing hooks operating on objects before they are stored to and after they were received from the cache.

Code

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