-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
class RawQuery:
def __init__(self, str_query=''):
self.str_query = str_query
def execute(self):
return self.raw_response
@property
def query(self):
return self.str_query
@property
def raw_response(self):
return self._resolve()
@lru_cache(maxsize=None)
def _resolve(self, *args, **kwargs):
instance = Influxable.get_instance()
return instance.execute_query(query=self.str_query, method='post')
lru_cache(maxsize=None) this line may cause memory grow indefinitely
functools.lru_cache If maxsize is set to None, the LRU feature is disabled and the cache can grow without bound.
thank.
Metadata
Metadata
Assignees
Labels
No labels