- 授权协议: MIT
- 开发语言: Python
- 操作系统: 跨平台
- 软件首页: https://github.com/hustcc/wrapcache
- 软件文档: https://github.com/hustcc/wrapcache
软件介绍
一个基于Python 装饰器的缓存库,使用简单,配置容易,一个装饰器搞定缓存。
-
首先 pip install wrapcache,支持python2和python3。
-
然后import wrapcache。
-
最后在需要缓存的方法上加上装饰器即可@wrapcache.wrapcache(timeout = 3)
其中 @wrapcache.wrapcache(timeout = 3, adapter = RedisAdapter) 有两个参数:
-
timeout, 过期时间,默认为-1,不缓存数据
-
adapter,存储器,默认为MemoryAdapter(存到python的全局字典中),可选RedisAdapter(存储到redis中)
注意:如果选择adapter = RedisAdapter,则需要在使用前设置redis市里 调用 RedisAdapter.db = redis_instance
闪魂FLASH8网站建设实录
马谧铤 / 中国林业 / 2006-7 / 46.00元
《闪魂FLASH8网站建设实录》旨在提供以Flash(Flash 8.0为创作工具)为技术核心的整套互动网站的开发思路,其中包括了网站策划、平面设计、程序设计等实用的互联网应用技术。内容包括Photoshop CS2设计,FIash 8创作和ActionScript应用程序开发的操作流程。在技术学习的过程中.大家还将体会到顶级互动网站设计、网站建设的设计流程和思路。《闪魂FLASH8网站建设实录》......一起来看看 《闪魂FLASH8网站建设实录》 这本书的介绍吧!
