class Trice::ThreadLocalBackend
Public Class Methods
new(key)
click to toggle source
# File lib/trice/repository.rb, line 31 def initialize(key) @key = key end
Public Instance Methods
get()
click to toggle source
# File lib/trice/repository.rb, line 39 def get Thread.current[@key] end
set(time)
click to toggle source
# File lib/trice/repository.rb, line 35 def set(time) Thread.current[@key] = time end