Interface PipelineHashClient

Hierarchy

Properties

hdel: ((key, ...fields) => void)

Type declaration

    • (key, ...fields): void
    • 删除哈希表 key 中的一个或多个指定域,不存在的域将被忽略

      Parameters

      • key: string

        哈希表

      • Rest ...fields: string[]

        域列表

      Returns void

hexists: ((key, field) => void)

Type declaration

    • (key, field): void
    • 检查给定域 field 是否存在于哈希表 hash 当中

      Parameters

      • key: string

        哈希表

      • field: string

      Returns void

hget: ((key, field) => void)

Type declaration

    • (key, field): void
    • 返回哈希表中给定域的值。

      Parameters

      • key: string

        哈希表

      • field: string

      Returns void

hgetAll: ((key) => void)

Type declaration

    • (key): void
    • 返回哈希表 key 中,所有的域和值。

      Parameters

      • key: string

        哈希表

      Returns void

      键值对

hincrby: ((key, field, increment) => void)

Type declaration

    • (key, field, increment): void
    • 为哈希表 key 中的域 field 的值加上增量 increment

      Parameters

      • key: string

        哈希表, 如果 key 不存在,一个新的哈希表被创建并执行 HINCRBY 命令

      • field: string

        域,如果域 field 不存在,那么在执行命令前,域的值被初始化为 0。 如果存在且值是字符串的, 则抛异常

      • increment: number

        增量,可为负数,本操作的值被限制在 64 位(bit)有符号数字表示之内

      Returns void

hkeys: ((key) => void)

Type declaration

    • (key): void
    • 返回哈希表 key 中的所有域。

      Parameters

      • key: string

        哈希表

      Returns void

hlen: ((key) => void)

Type declaration

    • (key): void
    • 返回哈希表 key 中域的数量。

      Parameters

      • key: string

        哈希表

      Returns void

hmget: ((key, ...fields) => void)

Type declaration

    • (key, ...fields): void
    • 返回哈希表 key 中,一个或多个给定域的值。

      Parameters

      • key: string

        哈希表

      • Rest ...fields: string[]

        域列表

      Returns void

hmset: ((key, map) => void)

Type declaration

    • (key, map): void
    • 同时将多个 field-value (域-值)对设置到哈希表 key 中。 此命令会覆盖哈希表中已存在的域。

      Parameters

      • key: string

        哈希表,如果 key 不存在,一个空哈希表被创建并执行 HMSET 操作

      • map: "redis".StringDict

        必须是<string, string>键值对

      Returns void

hset: ((key, field, value) => void)

Type declaration

    • (key, field, value): void
    • 将哈希表 hash 中域 field 的值设置为 value

      Parameters

      • key: string

        哈希表

      • field: string

      • value: string

        字段值, 如果值为null或者undefined,设置成空字符串

      Returns void

hsetnx: ((key, field, value) => void)

Type declaration

    • (key, field, value): void
    • 当且仅当域 field 尚未存在于哈希表的情况下, 将它的值设置为 value

      Parameters

      • key: string

        哈希表

      • field: string

      • value: string

        字段值

      Returns void

hstrlen: ((key, field) => void)

Type declaration

    • (key, field): void
    • 返回哈希表 key 中, 与给定域 field 相关联的值的字符串长度(string length)

      Parameters

      • key: string

        哈希表

      • field: string

      Returns void

hvals: ((key) => void)

Type declaration

    • (key): void
    • 返回哈希表 key 中所有域的值。

      Parameters

      • key: string

        哈希表

      Returns void