T
T
Toopie2018-07-25 02:13:49
memcached
Toopie, 2018-07-25 02:13:49

Memcached in Lua - what is the shelf life?

Hello, how long is data stored in memcached?
I entered the data, restarted nginx, but the data still remained. This, of course, is very pleasing, I would like to build a no-sql database, but I wonder how long the data is stored?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
m0nym, 2018-07-25
@m0nym

This, of course, is very pleasing, I would like to build a no-sql database, but I wonder how long the data is stored?

Until crowded out by new data. Or until reboot.
And for key-value with permanent guaranteed storage (since it is dumped to disk and automatically rises from disk) and fast access, since data in RAM is Tarantool.

A
Andrey Tsvetkov, 2018-07-25
@yellow79

If you do not specify how long the key "live", then it is set to zero, which means the data will always "live". But perhaps there are differences in different drivers for memcached. What is written above is true for the driver from luaresty

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question