To store the timestamp of the user's last activity? Essentially, you need: key (user_id): timestamp
1 answer
You have not so many options: strings, lists, sets, dictionaries. It is not difficult to conclude that you need to use a string to store one value.
- Does the string really have a key? Probably more suitable Hash - Jony
- oneRedis is itself a hash. Hashes, as structures, are needed in it in order to get at once a set of key-value pairs at once. - a_gura
- It turns out that with the data type "string" I can change the existing value of the keys? - Jony
- Naturally. - a_gura
|