Y
Y
ymer2018-07-03 23:10:20
NoSQL
ymer, 2018-07-03 23:10:20

Is it worth storing data in Redis/Memcached in this case?

There was a need to write a bot for a social network, the bot has a huge number of all sorts of menus.
The question arose - where should I store the last selected menu / action? Should I use something like Memcached/Redis? If we take into account the fact that the user can end the correspondence at any time, and the data will still remain in RAM.
Or is there some more reasonable alternative?
Thanks for the replies.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
zxscv, 2018-07-04
@dnulled

Radish, namely its hash structure is quite suitable and convenient. And I would choose it if the radish is already used somewhere in other roles in the project. Memcache(ed) - no, if you don't want to lose data on reboot.
reasonable alternatives - relational databases

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question