MCPcopy Create free account
hub / github.com/internetarchive/openlibrary / set

Method set

openlibrary/core/cache.py:281–282  ·  view source on GitHub ↗
(self, key, value, expires=0)

Source from the content-addressed store, hash-verified

279 return self.d.get(key)
280
281 def set(self, key, value, expires=0):
282 self.d[key] = value
283
284 def add(self, key, value, expires=0):
285 return self.d.setdefault(key, value) is value

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected