lib/simple_throttle.rb
# Return the Redis instance where the throttles are stored.
Return the Redis instance where the throttles are stored.
Return the Redis instance where the throttles are stored .
def redis
      @redis_client ||= Redis.new
      if @redis_client.is_a?(Proc)
        @redis_client.call
      else
        @redis_client
      end
    end
def redis @redis_client ||= Redis . new if @redis_client . is_a? ( Proc ) @redis_client . call else @redis_client end end
Return the Redis instance where the throttles are stored.
Return the Redis instance where the throttles are stored .