Problem There is an active redis with a large number of keys having a short lifespan.

It is necessary to conduct some analytics on the values ​​of these keys.

It is possible to shoot a database dump, but at the same time TTL does not go anywhere and launching analytics from a dump on another environment is useless.

Therefore, the question is whether it is possible to disable the expire-ing mechanism for Redis keys.

    1 answer 1

    PERSIST mykey will not suit you?

    • No, it will not work. The reason is that it will also take time to complete. Of course, you can use it in Pipeline, which will be executed by a single transaction, but this is not a guaranteed solution and there is a chance to lose some of the data. - Dmitry