MCPcopy
hub / github.com/celery/celery / set

Method set

celery/backends/gcs.py:94–99  ·  view source on GitHub ↗
(self, key, value)

Source from the content-addressed store, hash-verified

92 return None
93
94 def set(self, key, value):
95 key = bytes_to_str(key)
96 blob = self._get_blob(key)
97 if self.ttl:
98 blob.custom_time = datetime.utcnow() + timedelta(seconds=self.ttl)
99 blob.upload_from_string(value, retry=self._retry_policy)
100
101 def delete(self, key):
102 key = bytes_to_str(key)

Callers 2

incrMethod · 0.45
_expire_chord_keyMethod · 0.45

Calls 1

_get_blobMethod · 0.95

Tested by

no test coverage detected