Skip to content

ARadisList getCount() #5

@modernx

Description

@modernx
public function getCount() {
    if ($this->_count === null) {
        if ($this->name === null) {
            throw new CException(get_class($this)." requires a name!");
        }
        $this->_count = (int) $this->getConnection()->getClient()->lSize($this->name);
    }
    return $this->_count;
}

lSize does not work

but work this:
$rconn = Yii::app()->redis->getClient();
$llen_f = $rconn->llen($redis_key);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions