MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / get

Method get

suds/cache.py:370–378  ·  view source on GitHub ↗
(self, id)

Source from the content-addressed store, hash-verified

368 return 'px'
369
370 def get(self, id):
371 try:
372 with FileCache.getf(self, id) as fp:
373 if fp is None:
374 return None
375 else:
376 return pickle.load(fp)
377 except:
378 FileCache.purge(self, id)
379
380 def put(self, id, object):
381 bfr = pickle.dumps(object, self.protocol)

Callers

nothing calls this directly

Calls 3

getfMethod · 0.45
loadMethod · 0.45
purgeMethod · 0.45

Tested by

no test coverage detected