Jamm\Memory\RedisServer::BITCOUNT PHP Méthode

BITCOUNT() public méthode

By default all the bytes contained in the string are examined. It is possible to specify the counting operation only in an interval passing the additional arguments start and end.
public BITCOUNT ( string $key, integer $start, integer $end ) : integer
$key string
$start integer
$end integer
Résultat integer
    public function BITCOUNT($key, $start = 0, $end = 0)
    {
        if ($start > 0 || $end > 0) {
            return $this->_send(array('BITCOUNT', $key, $start, $end));
        }
        return $this->_send(array('BITCOUNT', $key));
    }