Method: Sequel::Plugins::StaticCache::ClassMethods#cache_get_pk

Defined in:
lib/sequel/plugins/static_cache.rb

#cache_get_pk(pk) ⇒ Object

Return the frozen object with the given pk, or nil if no such object exists in the cache, without issuing a database query.


111
112
113
# File 'lib/sequel/plugins/static_cache.rb', line 111

def cache_get_pk(pk)
  static_cache_object(cache[pk])
end