INNER CODE UNIT · Python

get_expiry

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

    async def get_expiry(self, key: str) -> float:
        """
        :param key: the key to get the expiry for
        """
        return await self.bridge.get_expiry(key)

    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,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…