Jamm\Memory\RedisObject::get_keys PHP Method

get_keys() public method

Return array of all stored keys
public get_keys ( )
    public function get_keys()
    {
        $l = strlen($this->prefix);
        $keys = $this->redis->Keys($this->prefix . '*');
        if (!empty($keys)) {
            foreach ($keys as &$key) {
                $key = substr($key, $l);
            }
            return $keys;
        } else {
            return array();
        }
    }