INNER CODE UNIT · Python

get

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

    async def get(self, key: str) -> int:
        """
        :param key: the key to get the counter value for
        """

        return await self.bridge.get(key)

    async def clear(self, key: str) -> None:
        """
        :param key: the key to clear rate limits for
        """

        return await self.bridge.clear(key)

    async def acquire_entry(
        self, key: str, limit: int, expiry: int, amount: int = 1
    ) -> bool:
        """

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…