- 授权协议: BSD
- 开发语言: Python
- 操作系统: 跨平台
- 软件首页: https://github.com/mikeboers/PyMemoize
- 软件文档: https://github.com/mikeboers/PyMemoize
软件介绍
PyMemoize 是一个相对简单的 Python 缓存模块,可以用来存储任意的类 dict 的数据。
示例代码:
# Make a store.
store = {}
# Initialize the cache object.
from memoize import Memoizer
memo = Memoizer(store)
memo.exists('basic')
# return > True
memo.delete('basic')
memo.exists('basic')
# return > False
memo.get('basic', basic_func)
# stdout > called
# return > 123
