def set(self, key, value):
"""Sets the key and value represented by this cache item.
Note:
The $value argument may be any item that can be serialized by python,
although the method of serialization is left up to the Implementing
Library.
Args:
value: The serializable value to be stored.
:return The invoked object.
"""
self.key = key
self.value = value
self.expire_at = datetime.max
self._setHit()
return self.key, self.value
评论列表
文章目录