(self)
| 192 | self.skip_paths = [] if skip_paths is None else skip_paths |
| 193 | |
| 194 | def _normalize(self): |
| 195 | if len(self._cache) > self.num_to_store: |
| 196 | # Flush 20% of the cache |
| 197 | with sess_lock: |
| 198 | while len(self._cache) > (self.num_to_store * 0.8): |
| 199 | self._cache.popitem(False) |
| 200 | |
| 201 | def is_session_ready(self, _session): |
| 202 | if not has_request_context() or _session is None: |
no outgoing calls
no test coverage detected