cacheItem.py 文件源码

python
阅读 34 收藏 0 点赞 0 评论 0

项目:python-cache 作者: python-cache 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号