cache_is_empty

function cache_is_empty

cache_is_empty($bin)

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.

Parameters

$bin: The cache bin to check.

Return value

TRUE if the cache bin specified is empty.

File

includes/cache.inc, line 183
Functions and interfaces for cache handling.

Code

function cache_is_empty($bin) {
  return _cache_get_object($bin)->isEmpty();
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!cache.inc/function/cache_is_empty/7.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部