module Sequel::Plugins::StaticCache::ForbidLazyLoadClassMethods

  1. lib/sequel/plugins/static_cache.rb

Methods

Public Instance

  1. cache_get_pk
  2. first

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