class EntityCache::Store::Internal::Scope::Global

Public Instance Methods

records() click to toggle source
# File lib/entity_cache/store/internal/scope/global.rb, line 6
def records
  records_by_subject[subject]
end
records_by_subject() click to toggle source
# File lib/entity_cache/store/internal/scope/global.rb, line 10
def records_by_subject
  mutex.synchronize do
    @@records_by_subject ||= {}
    @@records_by_subject[subject] ||= ThreadSafeHash.new
    @@records_by_subject
  end
end