Count number of responses, optionally excluding expired Args: expired: Set to ``False`` to count only unexpired responses
(self, expired: bool = True)
| 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( |