This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2019-02-02 10:11:38 -08:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Redisable
|
|
|
|
extend ActiveSupport::Concern
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def redis
|
2022-04-29 13:43:07 -07:00
|
|
|
Thread.current[:redis] ||= RedisConfiguration.pool.checkout
|
2019-02-02 10:11:38 -08:00
|
|
|
end
|
|
|
|
end
|