Set the value of a key in the cache and serialize it :param key: :param value: :param expire_time: :return:
(self, key: str, value: Any, expire_time: int)
| 65 | return pickle.loads(value) |
| 66 | |
| 67 | def set(self, key: str, value: Any, expire_time: int) -> None: |
| 68 | """ |
| 69 | Set the value of a key in the cache and serialize it |
| 70 | :param key: |
| 71 | :param value: |
| 72 | :param expire_time: |
| 73 | :return: |
| 74 | """ |
| 75 | self._redis_client.set(key, pickle.dumps(value), ex=expire_time) |
| 76 | |
| 77 | def keys(self, pattern: str) -> List[str]: |
| 78 | """ |
no outgoing calls