Module: BrainzLab::Instrumentation::RedisInstrumentation
- Defined in:
- lib/brainzlab/instrumentation/redis.rb
Defined Under Namespace
Modules: LegacyPatch, Middleware
Class Method Summary
collapse
Class Method Details
.install! ⇒ Object
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# File 'lib/brainzlab/instrumentation/redis.rb', line 9
def install!
return unless defined?(::Redis)
return if @installed
if redis_5_or_newer?
install_middleware!
else
install_patch!
end
@installed = true
BrainzLab.debug_log('Redis instrumentation installed')
end
|
.installed? ⇒ Boolean
24
25
26
|
# File 'lib/brainzlab/instrumentation/redis.rb', line 24
def installed?
@installed
end
|
.reset! ⇒ Object
28
29
30
|
# File 'lib/brainzlab/instrumentation/redis.rb', line 28
def reset!
@installed = false
end
|