- 授权协议: MIT
- 开发语言: Python
- 操作系统: 跨平台
- 软件首页: https://github.com/lonetwin/supycache
- 软件文档: https://github.com/lonetwin/supycache
软件介绍
supycache 是 Python 对缓存的简单封装库,支持包括内存缓存、memcached 和 redis。
示例代码:
import time
import supycache
@supycache.supycache(cache_key='result')
def execute_expensive():
time.sleep(15)
return 42
print execute_expensive() # This will take 15 seconds to execute ...
42
print execute_expensive() # ...not this tho', because the value is cached ...
42
print supycache.default_backend.get('result') # ..keyed as `result`
42
Mission Python
Sean McManus / No Starch Press / 2018-9-18 / GBP 24.99
Launch into coding with Mission Python, a space-themed guide to building a complete computer game in Python. You'll learn programming fundamentals like loops, strings, and lists as you build Escape!, ......一起来看看 《Mission Python》 这本书的介绍吧!
