Module: NewRelic::ThreadLocalStorage
- Defined in:
- lib/new_relic/thread_local_storage.rb
Class Method Summary collapse
- .[](key) ⇒ Object
- .[]=(key, value) ⇒ Object
- .get(thread, key) ⇒ Object
- .set(thread, key, value) ⇒ Object
Class Method Details
.[](key) ⇒ Object
23 24 25 |
# File 'lib/new_relic/thread_local_storage.rb', line 23 def self.[](key) get(::Thread.current, key) end |
.[]=(key, value) ⇒ Object
27 28 29 |
# File 'lib/new_relic/thread_local_storage.rb', line 27 def self.[]=(key, value) set(::Thread.current, key, value) end |