MCPcopy
hub / github.com/celery/celery / get

Method get

celery/backends/elasticsearch.py:104–113  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

102 return False
103
104 def get(self, key):
105 try:
106 res = self._get(key)
107 try:
108 if res['found']:
109 return res['_source']['result']
110 except (TypeError, KeyError):
111 pass
112 except elasticsearch.exceptions.NotFoundError:
113 pass
114
115 def _get(self, key):
116 if self.doc_type:

Callers 10

test_getMethod · 0.95
test_get_with_doctypeMethod · 0.95
test_get_noneMethod · 0.95
mgetMethod · 0.95
_getMethod · 0.45
_updateMethod · 0.45
encodeMethod · 0.45
decodeMethod · 0.45

Calls 1

_getMethod · 0.95

Tested by 5

test_getMethod · 0.76
test_get_with_doctypeMethod · 0.76
test_get_noneMethod · 0.76