1
votes

I am aware of Redis having persistence option of RDB and AOF which to me is more or less entire redis cache store back-up.

Do we have persistence capability only for selected keys ? One solution is to have long TTL but that would still be lost in case of a power failure or crash.

My requirement is not to persist entire data from redis but selected keys.

Thanks, Ashish

1

1 Answers

5
votes

No - Redis' data persistence applies to the entire dataset that the server manages, meaning all keys in all numbered databases.

If you want to persist just a bunch of keys, provision a separate Redis database for these and configure its persistency (AOF and/or RDB) accordingly.