main.py 文件源码

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

项目:FileStoreGAE 作者: liantian-cn 项目源码 文件源码
def thumbnail(key,filename):
    if request.if_modified_since:
        return "HTTP_304_NOT_MODIFIED", 304
    memcache_key = 'thumbnail_{}'.format(key)
    data = memcache.get(memcache_key)
    if data is None:
        data = get_thumbnail(key)
        memcache.add(memcache_key, data, 86400 * 30)
    return data
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号