基于时间的函数缓存
temporal-cache的Python项目详细描述
#时态缓存
基于时间的缓存失效
[![构建状态](https://travis-ci.org/timkpaine/temporal-cache.svg?branch=master)(https://travis ci.org/timkpaine/temporal cache)
[![覆盖范围](https://codecov.io/gh/timkpaine/temporal cache/branch/master/graph/badge.svg)(https://codecov.io/gh/timkpaine/temporal cache)
[![华夫饼.io](https://badge.waffle.io/timkpaine/temporal-cache.png?label=ready&title=ready)(https://waffle.io/timkpaine/temporal-cache?utm_source=徽章)
[![BCH合规](https://bettercodehub.com/edge/badge/timkpaine/temporal-cache?branch=master)(https://bettercodehub.com/)
[![许可证](https://img.shields.io/github/license/timkpaine/temporal cache.svg)(https://pypi.python.org/pypi/temporal cache/)
[![pypi](https://img.shields.io/pypi/v/temporal cache.svg)(https://pypi.python.org/pypi/temporal cache/)
[![文档](https://img.shields.io/readthedocs/temporal cache.svg)(https://temporal cache.readthedocs.io)为什么?
我需要在下午4:00市场关闭时自动刷新的内容。
``python3
@expire(hour=16)
def fetchfinancialdata():
````
分钟=2)
def myfoo():
“myfoo的lru缓存将在上次使用后2分钟5秒过期”
````
``expire缓存
``python3
@expire(秒=5,分钟=2)
def myfoo():
“myfoo的lru缓存将在每小时、每天等的第二分钟、第五秒过期”
基于时间的缓存失效
[![构建状态](https://travis-ci.org/timkpaine/temporal-cache.svg?branch=master)(https://travis ci.org/timkpaine/temporal cache)
[![覆盖范围](https://codecov.io/gh/timkpaine/temporal cache/branch/master/graph/badge.svg)(https://codecov.io/gh/timkpaine/temporal cache)
[![华夫饼.io](https://badge.waffle.io/timkpaine/temporal-cache.png?label=ready&title=ready)(https://waffle.io/timkpaine/temporal-cache?utm_source=徽章)
[![BCH合规](https://bettercodehub.com/edge/badge/timkpaine/temporal-cache?branch=master)(https://bettercodehub.com/)
[![许可证](https://img.shields.io/github/license/timkpaine/temporal cache.svg)(https://pypi.python.org/pypi/temporal cache/)
[![pypi](https://img.shields.io/pypi/v/temporal cache.svg)(https://pypi.python.org/pypi/temporal cache/)
[![文档](https://img.shields.io/readthedocs/temporal cache.svg)(https://temporal cache.readthedocs.io)为什么?
我需要在下午4:00市场关闭时自动刷新的内容。
``python3
@expire(hour=16)
def fetchfinancialdata():
````
分钟=2)
def myfoo():
“myfoo的lru缓存将在上次使用后2分钟5秒过期”
````
``expire缓存
``python3
@expire(秒=5,分钟=2)
def myfoo():
“myfoo的lru缓存将在每小时、每天等的第二分钟、第五秒过期”