Skip to content

Instantly share code, notes, and snippets.

@wilmoore
Last active December 9, 2024 04:00
Show Gist options
  • Select an option

  • Save wilmoore/799d871784e8bea0d39df5a33fa9e142 to your computer and use it in GitHub Desktop.

Select an option

Save wilmoore/799d871784e8bea0d39df5a33fa9e142 to your computer and use it in GitHub Desktop.
Software Engineering :: Database :: Redis :: Command :: HSET

Software Engineering :: Database :: Redis :: Command :: HSET

⪼ Made with 💜 by Polyglot.

assistant
related

HSET

Time complexity: O(1) for each field/value pair added, so O(N) to add N field/value pairs when the command is called with multiple field/value pairs.

HSET key field value [field value ...]
examples
❯ HSET user:wilmoore token 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 username wilmoore created 1670000000000 updated 1670000300000 plan 10m

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment