Public Instance methods
cache_get_pk(pk)
Do not forbid lazy loading for single object retrieval.
[show source]
# File lib/sequel/plugins/static_cache.rb 267 def cache_get_pk(pk) 268 primary_key_lookup(pk) 269 end
first(*args)
Use static cache to return first arguments.
[show source]
# File lib/sequel/plugins/static_cache.rb 272 def first(*args) 273 if !defined?(yield) && args.empty? 274 if o = @all.first 275 _static_cache_frozen_copy(o) 276 end 277 else 278 super 279 end 280 end