(self, cache)
| 505 | self._caches_list = [] # type: List[CacheInstance] |
| 506 | |
| 507 | def add_cache(self, cache): |
| 508 | # type: (CacheInstance) -> None |
| 509 | self._caches_list.append(cache) |
| 510 | setattr(self, cache.name, cache) |
| 511 | |
| 512 | def new_cache(self, name, timeout=None): |
| 513 | # type: (str, Optional[int]) -> CacheInstance |