0

Using a Ruby client connecting to a Redis instance, how do I check the persistence set on this Redis instance?

gem 'redis'

client = Redis.new

client.persistence == 'AOF' ...?
sellarafaeli
  • 1,167
  • 2
  • 9
  • 24
  • 1
    Answered here https://stackoverflow.com/a/60649605/8008340 (Redis commands almost literally mapped to Ruby client's instance methods, so `client.config(:get, :save)` and `client.config(:get, :appendonly)` should give you the state of RDB/AOF persistence) – Konstantin Strukov Dec 08 '22 at 11:58

0 Answers0