N
N
nurdus2017-10-01 00:45:07
Redis
nurdus, 2017-10-01 00:45:07

Is it possible to store a list of objects (list of hashes) in redis?

Good day.
1. Now I do this: I store the hash in the 'message:' keys, and the list in the 'messages' key. Maybe there is a more correct and beautiful way?
2. And is it possible to beautifully limit the length of the list? Now after adding I do ltrim.
Thanks in advance :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
InoMono, 2018-02-05
@InoMono

What for?
Do you want Redis to do some extra work? Your normal method

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question