Jamm\Memory\RedisServer::BITCOUNT PHP Method

BITCOUNT() public method

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
return 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));
    }