mirror of
https://github.com/onyx-and-iris/vban-cmd-python.git
synced 2024-11-15 17:10:46 +00:00
8 lines
233 B
Python
8 lines
233 B
Python
|
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
|