MCPcopy Create free account
hub / github.com/celery/celery / set

Method set

celery/backends/couchbase.py:119–124  ·  view source on GitHub ↗
(self, key, value)

Source from the content-addressed store, hash-verified

117 return None
118
119 def set(self, key, value):
120 # Since 4.0.0 value is JSONType in couchbase lib, so parameter format isn't needed
121 if FMT_AUTO is not None:
122 self.connection.upsert(key, value, ttl=self.expires, format=FMT_AUTO)
123 else:
124 self.connection.upsert(key, value, ttl=self.expires)
125
126 def mget(self, keys):
127 # ``get_multi`` returns a MultiGetResult, which is neither a mapping

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected