Skip to content

Hash Support #71

Answered by ra1u
garysm asked this question in Q&A
Nov 29, 2022 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

You can start with something like

Command cmd = await RedisConnection().connect('localhost', 6379);
var i = await cmd.send_object(["HSET", "user:123", "username", "martina", "firstName", "Martina", "lastName", "Elisa", "country","GB"]);
print("hash size is now $i");
var user = await cmd.send_object(["HGET", "user:123", "username");
print("user $user");
var all = await cmd.send_object("HGETALL", "user:123");
print("user $all");

I don't have compiler here and for this reason you will likely need to do some tweaking. Let me know if you have difficulties making this example to run. Fell free to post your suggestions, ideas or questions on how we can move forward from here.

Kind regards, Luka

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@garysm
Comment options

@MilindModi
Comment options

@ra1u
Comment options

ra1u Feb 8, 2023
Maintainer

@MilindModi
Comment options

Answer selected by garysm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants