【发布时间】:2014-01-23 21:29:20
【问题描述】:
我有一个这样的缓存方法:
from beaker.cache import CacheManager
from beaker.util import parse_cache_config_options
cache = CacheManager(**parse_cache_config_options({'cache.type': 'memory'}))
@cache.cache('test',expire=100000)
def f(x,y,z=True):
....
我需要通过另一种方法以编程方式使用此缓存来显式地使某些(不是全部)缓存值无效。我该怎么做?
【问题讨论】: