Python 缓存模块 PyMemoize

码农软件 · 软件分类 · 缓存系统 · 2019-08-29 18:58:50

软件介绍

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

本文地址:https://codercto.com/soft/d/13448.html

Impractical Python Projects

Impractical Python Projects

Lee Vaughan / No Starch Press / 2018-11 / USD 29.95

Impractical Python Projects picks up where the complete beginner books leave off, expanding on existing concepts and introducing new tools that you’ll use every day. And to keep things interesting, ea......一起来看看 《Impractical Python Projects》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具