vban-cmd-python/vbancmd/util.py

8 lines
233 B
Python
Raw Normal View History

def cache(func):
""" check if recently cached was an updated value """
def wrapper(*args, **kwargs):
# setup cache check
res = func(*args, **kwargs)
# update cache
return res
return wrapper