MCPcopy
hub / github.com/benoitc/gunicorn / __len__

Method __len__

gunicorn/dirty/stash.py:380–382  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

378 return iter(self._client.keys(self._name))
379
380 def __len__(self):
381 info = self._client.info(self._name)
382 return info.get("size", 0)
383
384 def get(self, key, default=None):
385 """Get value with default."""

Callers

nothing calls this directly

Calls 2

infoMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected