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

Method new_cache

scapy/config.py:512–516  ·  view source on GitHub ↗
(self, name, timeout=None)

Source from the content-addressed store, hash-verified

510 setattr(self, cache.name, cache)
511
512 def new_cache(self, name, timeout=None):
513 # type: (str, Optional[int]) -> CacheInstance
514 c = CacheInstance(name=name, timeout=timeout)
515 self.add_cache(c)
516 return c
517
518 def __delattr__(self, attr):
519 # type: (str) -> NoReturn

Callers 5

dns.pyFile · 0.80
l2.pyFile · 0.80
ldap.pyFile · 0.80
netbios.pyFile · 0.80
inet6.pyFile · 0.80

Calls 2

add_cacheMethod · 0.95
CacheInstanceClass · 0.85

Tested by

no test coverage detected