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 254 def cache_get_pk(pk) 255 primary_key_lookup(pk) 256 end
first(*args)
Use static cache to return first arguments.
[show source]
# File lib/sequel/plugins/static_cache.rb 259 def first(*args) 260 if !defined?(yield) && args.empty? 261 if o = @all.first 262 _static_cache_frozen_copy(o) 263 end 264 else 265 super 266 end 267 end