Module: CommandTower::RedisConnection
- Defined in:
- lib/command_tower/redis_connection.rb
Class Method Summary collapse
Class Method Details
.current ⇒ Object
9 10 11 |
# File 'lib/command_tower/redis_connection.rb', line 9 def current @current ||= Redis.new(url: ENV.fetch("REDIS_URL")) end |
.reset! ⇒ Object
17 18 19 |
# File 'lib/command_tower/redis_connection.rb', line 17 def reset! @current = nil end |
.with {|current| ... } ⇒ Object
13 14 15 |
# File 'lib/command_tower/redis_connection.rb', line 13 def with yield current end |