Hashes

Field-value maps under one key, with an expiry for each field, atomic increments, and reads and writes of many fields at once.

32 commands in KiviDB 1.1.2. Every command.

  • HDEL: Deletes fields from the hash at key.
  • HEXISTS: Tells whether field exists in the hash at key.
  • HEXPIRE: Makes fields of the hash at key expire after seconds.
  • HEXPIREAT: Makes fields of the hash at key expire at a Unix time, in seconds.
  • HEXPIRETIME: Returns the Unix time, in seconds, at which fields of the hash at key expire.
  • HGET: Returns the value of field in the hash at key.
  • HGETALL: Returns every field of the hash at key with its value.
  • HGETDEL: Returns the values of fields of the hash at key and deletes those fields, in one step.
  • HGETEX: Returns the values of fields of the hash at key and, optionally, changes their expiry, in one step.
  • HIMPORT: Loads many hashes that have the same fields, without sending the field names for each: a command of Redis 8.10.
    • HIMPORT DISCARD: Forgets the fieldset named fieldset on this connection.
    • HIMPORT PREPARE: Defines a fieldset named fieldset on this connection: the field names that HIMPORT SET gives values for, in order.
    • HIMPORT SET: Creates the hash at key from a fieldset this connection prepared, with one value per field in the fieldset's order.
  • HINCRBY: Adds increment, a 64-bit integer, to the integer value of field in the hash at key.
  • HINCRBYFLOAT: Adds increment, a floating-point number, to the value of field in the hash at key.
  • HKEYS: Returns the field names of the hash at key.
  • HLEN: Returns the number of fields in the hash at key.
  • HMGET: Returns the values of several fields of the hash at key.
  • HMSET: Another name for HSET, kept for old clients.
  • HPERSIST: Removes the expiry of fields of the hash at key.
  • HPEXPIRE: HEXPIRE with the time in milliseconds.
  • HPEXPIREAT: HEXPIREAT with the time in milliseconds.
  • HPEXPIRETIME: HEXPIRETIME in milliseconds.
  • HPTTL: HTTL in milliseconds.
  • HRANDFIELD: Returns fields of the hash at key, picked at random.
  • HSCAN: Goes through the fields of the hash at key a page at a time, as SCAN goes through keys.
  • HSET: Sets fields of the hash at key, each to its value.
  • HSETEX: Sets fields of the hash at key, with one expiry for all of them, in one step.
  • HSETNX: Sets field in the hash at key only if the field does not exist.
  • HSTRLEN: Returns the length, in bytes, of the value of field in the hash at key.
  • HTTL: Returns how long fields of the hash at key have before they expire, in seconds.
  • HVALS: Returns the values of the hash at key.