sdk/oapiSdk/lark_oapi/core/cache/cache.py

13 lines
265 B
Python
Raw Permalink Normal View History

2025-08-19 10:20:23 +00:00
from abc import ABC, abstractmethod
class ICache(ABC):
@abstractmethod
def get(self, key: str) -> str:
pass
# expire: 过期时间, Unix时间戳
@abstractmethod
def set(self, key: str, value: str, expire: int):
pass