mirror of
https://github.com/onyx-and-iris/vban-cmd-python.git
synced 2025-07-03 02:00:22 +01:00
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 |