blob: 8d76b6b82d6f967d7bec6f6c7c05601b5fca2235 (
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.pool.checkout
end
end
|