Tai Truong
fix readme
d202ada
raw
history blame contribute delete
286 Bytes
import asyncio
from typing import Any, Protocol
class GetCache(Protocol):
async def __call__(self, key: str, lock: asyncio.Lock | None = None) -> Any: ...
class SetCache(Protocol):
async def __call__(self, key: str, data: Any, lock: asyncio.Lock | None = None) -> bool: ...