MCPcopy
hub / github.com/celery/celery / put

Method put

celery/utils/collections.py:784–789  ·  view source on GitHub ↗
(self, key, item)

Source from the content-addressed store, hash-verified

782 self.total = sum(len(buf) for buf in self.items())
783
784 def put(self, key, item):
785 # type: (Any, Any) -> None
786 self._get_or_create_buffer(key).put(item)
787 self.total += 1
788 self.move_to_end(key) # least recently used.
789 self.maxsize and self._evict()
790
791 def extend(self, key, it):
792 # type: (Any, Iterable) -> None

Callers 9

test_append_limitedMethod · 0.95
test_append_unlimitedMethod · 0.95
run_workerFunction · 0.45
apply_asyncMethod · 0.45
setMethod · 0.45
on_state_changeMethod · 0.45
setMethod · 0.45
on_loop_startMethod · 0.45
_stop_task_handlerMethod · 0.45

Calls 3

_get_or_create_bufferMethod · 0.95
move_to_endMethod · 0.80
_evictMethod · 0.80

Tested by 3

test_append_limitedMethod · 0.76
test_append_unlimitedMethod · 0.76
run_workerFunction · 0.36