Execute redis FLUSHALL command in rails application Olivia House | June 16, 2026 I want to FLUSHALL redis every time the Rails server starts.How can I do this?Thanks in Advance.P.S: I am new to rails, so excuse me if the question is very easy.1 Answerport = 10000 $redis = Redis.new(:port => port) $redis.flushall To run that on start up check 2 Your Answer Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Submit Post as a guest Post as a guest Post Your Answer Discard By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy