mirror of
https://github.com/onyx-and-iris/vban-cmd-python.git
synced 2024-11-15 17:10:46 +00:00
6c914dafbe
add login, logout functions to base class. add caching to setters and fetch caching to getters. add isdirty function to rt packet dataclass for defining dirty flag. remove sync kwarg.
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 |