class ThreadSafe::MriCacheBackend

Public Instance Methods

each_pair() { |k, v| ... } click to toggle source

The original implementation duplicate the `@backend` Hash so it do not have to lock during the full iteration

# File lib/thread_hazardous/mri_cache_backend.rb, line 11
def each_pair
  @backend.each_pair do |k, v|
    yield k, v
  end
  self
end