Easy Tutorial
❮ Redis Stream Redis Php ❯

Redis HSCAN Command

Redis Hashes

The Redis HSCAN command is used to iterate over key-value pairs in a hash table.

Syntax

The basic syntax of the redis HSCAN command is as follows:

HSCAN key cursor [MATCH pattern] [COUNT count]

Available Versions

= 2.8.0

Return Value

Each returned element is a tuple, with each tuple consisting of a field and a value.

Example

> HMSET sites google "google.com" tutorialpro "tutorialpro.org" weibo "weibo.com" 4 "taobao.com"
OK
> HSCAN sites 0 match "run*"
1) "0"
2) 1) "tutorialpro"
2) "tutorialpro.org"

Redis Hashes

❮ Redis Stream Redis Php ❯