Class: Mongoid::QueryCache::CachedCursor
- Inherits:
-
Moped::Cursor
- Object
- Moped::Cursor
- Mongoid::QueryCache::CachedCursor
- Includes:
- Cacheable
- Defined in:
- lib/mongoid/query_cache.rb
Overview
A Cursor that attempts to load documents from memory first before hitting the database if the same query has already been executed.
Instance Method Summary collapse
-
#load_docs ⇒ Array<Hash>
Override the loading of docs to attempt to fetch from the cache.
Instance Method Details
#load_docs ⇒ Array<Hash>
Override the loading of docs to attempt to fetch from the cache.
229 230 231 |
# File 'lib/mongoid/query_cache.rb', line 229 def load_docs with_cache { super } end |