MCPcopy Index your code
hub / github.com/secdev/scapy / add_cache

Method add_cache

scapy/config.py:507–510  ·  view source on GitHub ↗
(self, cache)

Source from the content-addressed store, hash-verified

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

Callers 2

new_cacheMethod · 0.95
updateMethod · 0.95

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected