MCPcopy Create free account
hub / github.com/dask/dask / __init__

Method __init__

dask/cache.py:33–44  ·  view source on GitHub ↗
(self, cache, *args, **kwargs)

Source from the content-addressed store, hash-verified

31 """
32
33 def __init__(self, cache, *args, **kwargs):
34 try:
35 import cachey
36 except ImportError as ex:
37 raise type(ex)(f'Cache requires cachey, "{ex}" problem importing') from ex
38 self._nbytes = cachey.nbytes
39 if isinstance(cache, Number):
40 cache = cachey.Cache(cache, *args, **kwargs)
41 else:
42 assert not args and not kwargs
43 self.cache = cache
44 self.starttimes = dict()
45
46 def _start(self, dsk):
47 self.durations = dict()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected