Check the cache before a database lookup unless a hash is supplied.
# File lib/sequel/plugins/caching.rb, line 115 115: def primary_key_lookup(pk) 116: ck = cache_key(pk) 117: unless obj = cache_get(ck) 118: if obj = super(pk) 119: cache_set(ck, obj) 120: end 121: end 122: obj 123: end