In the documentation is said that you can use hash to store objects or any kind of data, and later you can extract them. I want to save, for instance, ids from a few users by using hash, and later extract all the ids, or all the elements with ids (something, I didnt accomplish nothing similar), can you help me?
redis 127.0.0.1:6379> set user:id:1234 "content of my first user"
OK
redis 127.0.0.1:6379> set user:id:1235 "content of my second user"
OK
redis 127.0.0.1:6379> set user:id:1236 "content of my third user"
OK
redis 127.0.0.1:6379> get user:id
(nil) ####I hoped to see all my id's users listed, I want to make
something like that,in the documentation I saw an example, but
is not completed####
Those are plain top-level key sets. To make a hash, you should use HSET