MCPcopy Create free account
hub / github.com/requests-cache/requests-cache / count

Method count

requests_cache/backends/sqlite.py:147–153  ·  view source on GitHub ↗

Count number of responses, optionally excluding expired Args: expired: Set to ``False`` to count only unexpired responses

(self, expired: bool = True)

Source from the content-addressed store, hash-verified

145 )
146
147 def count(self, expired: bool = True) -> int:
148 """Count number of responses, optionally excluding expired
149
150 Args:
151 expired: Set to ``False`` to count only unexpired responses
152 """
153 return self.responses.count(expired=expired)
154
155 # A more efficient implementation of BaseCache.filter to make use of indexes
156 def filter(

Callers

nothing calls this directly

Calls 1

countMethod · 0.45

Tested by

no test coverage detected