INNER CODE UNIT · Python
configure_bridge
alisaifee/limits · limits/aio/storage/redis/__init__.py:145
def configure_bridge(self) -> None:
self.bridge.use_basic(**self.options)
@property
def base_exceptions(
self,
) -> type[Exception] | tuple[type[Exception], ...]: # pragma: no cover
return self.bridge.base_exceptions
async def incr(self, key: str, expiry: int, amount: int = 1) -> int:
"""
increments the counter for a given rate limit key
:param key: the key to increment
:param expiry: amount in seconds for the key to expire in
:param amount: the number to increment by
"""