MCPcopy
hub / github.com/redis/redis-py / _increment_usage

Method _increment_usage

redis/asyncio/client.py:703–710  ·  view source on GitHub ↗

Helper coroutine to increment the usage counter while holding the lock. Returns the new value of the usage counter.

(self)

Source from the content-addressed store, hash-verified

701 raise
702
703 async def _increment_usage(self) -> int:
704 """
705 Helper coroutine to increment the usage counter while holding the lock.
706 Returns the new value of the usage counter.
707 """
708 async with self._usage_lock:
709 self._usage_counter += 1
710 return self._usage_counter
711
712 async def _decrement_usage(self) -> int:
713 """

Callers 1

__aenter__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected