timeline.py 文件源码

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

项目:isthislegit 作者: duo-labs 项目源码 文件源码
def get_last(cls, domain, days=30):
        """
        Gets the entries for the specified number of days. This will
        first query memcached, using datastore as a fallback.
        """
        if days > cls._memcache_date_offset:
            return cls._get_from_datastore(domain, days)

        cached = memcache.get(
            key=cls._memcache_key, namespace='{}|'.format(domain))

        if cached:
            records = json.loads(cached)
            return records

        return cls._update_memcached(domain)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号