mirror of
https://github.com/onyx-and-iris/vban-cmd-python.git
synced 2024-11-16 01:10:48 +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
|