INNER CODE UNIT · Python

reset

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

    async def reset(self) -> int | None:
        raise NotImplementedError

    async def check(self) -> bool:
        return await self.bridge.check()

    async def acquire_sliding_window_entry(
        self,
        key: str,
        limit: int,
        expiry: int,
        amount: int = 1,
    ) -> bool:
        if amount > limit:
            return False
        now = time.time()
        previous_key, current_key = self.sliding_window_keys(key, expiry, now)
        (

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…