Execute Redis Flushall Command in Rails Application
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...
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 Answer
port = 10000
$redis = Redis.new(:port => port)
$redis.flushall
To run that on start up check