Is Redis Persistence Enabled?
persistence, redis
Solution
There are two type of persistance, RDB and AOF.
- Check is RDB persistence enabled: `redis-cli CONFIG GET save` RDB persistence enabled if it return something like that:
1) "save"
2) "900 1 300 10 60 10000"
RDB persistence disabled if you get empty result:
1) "save"
2) ""
To check is AOF persistence enabled, invoke:
`redis-cli CONFIG GET appendonly`
If you get `yes` - it's enabled, `no` - disabled.
Problem
Is there any way to check, from an active session, whether a Redis server has persistence (e.g. RDB persistence) enabled? The INFO command does contain a section on persistence, but it is not clear to me whether the values indicate that persistence is turned on.