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