Jamm\Memory\RedisServer::BITCOUNT PHP 메소드

BITCOUNT() 공개 메소드

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
리턴 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));
    }