kernel/private/rest/classes/cache/cluster.php
public function countDataItems( $id = null, $attributes = array() )
    {
        if ( !isset( $this->clusterCacheFile ) )
        {
            $this->clusterCacheFile = eZClusterFileHandler::instance(
                $this->properties['location'] . $this->generateIdentifier( $id, $attributes )
            );
        }

        return $this->clusterCacheFile->exists() ? 1 : 0;
    }
public function countDataItems( $id = null, $attributes = array() )
    {
        if ( !isset( $this->clusterCacheFile ) )
        {
            $this->clusterCacheFile = eZClusterFileHandler::instance(
                $this->properties['location'] . $this->generateIdentifier( $id, $attributes )
            );
        }

        return $this->clusterCacheFile->exists() ? 1 : 0;
    }
public function countDataItems ( $ id = null , $ attributes = array ( ) ) { if ( ! isset ( $ this -> clusterCacheFile ) ) { $ this -> clusterCacheFile = eZClusterFileHandler :: instance ( $ this -> properties [ 'location' ] . $ this -> generateIdentifier ( $ id , $ attributes ) ) ; } return $ this -> clusterCacheFile -> exists ( ) ? 1 : 0 ; }
Return the number of items in the cache matching a certain criteria.

This method determines if cache data described by the given ID and/or
attributes exists. It returns the number of cache data items found.

@param string $id                        The item ID.
@param array(string=>string) $attributes Attributes that describe the item

@return int The number of cache data items found matching the criteria
Return the number of items in the cache matching a certain criteria .