Lines Matching refs:Cache
17 cache = link.LinkCache() # create new empty link cache
18 cache.refill(sock) # fill cache with all configured links
19 eth0 = cache['eth0'] # lookup link "eth0"
27 - LinkCache -- Derived from netlink.Cache, holds any number of
112 class LinkCache(netlink.Cache):
113 """Cache of network links"""
115 def __init__(self, family=socket.AF_UNSPEC, cache=None):
116 if not cache:
117 cache = self._alloc_cache_name('route/link')
121 self._nl_cache = cache
139 def _new_cache(self, cache):
140 return LinkCache(family=self.arg1, cache=cache)