MCPcopy Index your code
hub / github.com/MongoEngine/mongoengine / cache

Method cache

mongoengine/queryset/queryset.py:162–164  ·  view source on GitHub ↗

Convert to a caching queryset

(self)

Source from the content-addressed store, hash-verified

160 """A non caching QuerySet"""
161
162 def cache(self):
163 """Convert to a caching queryset"""
164 return self._clone_into(QuerySet(self._document, self._collection))
165
166 def __repr__(self):
167 """Provides the string representation of the QuerySet"""

Calls 2

QuerySetClass · 0.85
_clone_intoMethod · 0.80