Get the value of a key from the cache and deserialize it :param key: :return:
(self, key: str)
| 54 | ) |
| 55 | |
| 56 | def get(self, key: str) -> Any: |
| 57 | """ |
| 58 | Get the value of a key from the cache and deserialize it |
| 59 | :param key: |
| 60 | :return: |
| 61 | """ |
| 62 | value = self._redis_client.get(key) |
| 63 | if value is None: |
| 64 | return None |
| 65 | return pickle.loads(value) |
| 66 | |
| 67 | def set(self, key: str, value: Any, expire_time: int) -> None: |
| 68 | """ |
no outgoing calls