about summary refs log tree commit diff
path: root/app/models/concerns/redisable.rb
blob: cce8efb862acac2271d8f76664429831ba63bb98 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

module Redisable
  extend ActiveSupport::Concern

  private

  def redis
    Thread.current[:redis] ||= RedisConfiguration.new.connection
  end
end