class Roda::RodaCache

thread safe.
each protected by a mutex. Used on non-MRI where Hash is not
A thread safe cache class, offering only #[] and #[]= methods,
:nocov:

def [](key)

Make getting value from underlying hash thread safe.
def [](key)
  @mutex.synchronize{@hash[key]}
end

def []=(key, value)

Make setting value in underlying hash thread safe.
def []=(key, value)
  @mutex.synchronize{@hash[key] = value}
end

def initialize

Create a new thread safe cache.
def initialize
  @mutex = Mutex.new
  @hash = {}
end