Method: Sequel::Plugins::Caching::ClassMethods#cache_get_pk

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

#cache_get_pk(pk) ⇒ Object

Return the cached object with the given primary key, or nil if no such object is in the cache.

[View source]

73
74
75
# File 'lib/sequel/plugins/caching.rb', line 73

def cache_get_pk(pk)
  cache_get(cache_key(pk))
end