INNER CODE UNIT · Python

get

alisaifee/limits · limits/aio/storage/memcached/__init__.py:77

    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
        """
        await self.bridge.clear(key)

    async def incr(
        self,
        key: str,
        expiry: float,
        amount: int = 1,
        set_expiration_key: bool = True,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…