INNER CODE UNIT · Python

base_exceptions

alisaifee/limits · limits/aio/storage/redis/__init__.py:149

    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
        """

        return await self.bridge.incr(key, expiry, amount)

    async def get(self, key: str) -> int:
        """

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…