Method: Sequel::Plugins::StaticCache::ClassMethods#count
- Defined in:
- lib/sequel/plugins/static_cache.rb
#count(*a, &block) ⇒ Object
Get the number of records in the cache, without issuing a database query.
101 102 103 104 105 106 107 |
# File 'lib/sequel/plugins/static_cache.rb', line 101 def count(*a, &block) if a.empty? && !block @all.size else super end end |