I have this code:
class Test(CqlEngineModel):
@classmethod
@cql_engine_connector
@functools.lru_cache(maxsize=1000)
def is_not_analyzable(cls, x, y):
if mic:
query_result = ...
mic_list = cls._to_list(query_result)
return True if mic_list else False
else:
return False
Outside I need to call cache_clear function, like this:
Test.is_not_analyzable.cache_clear()
but I have this error:
AttributeError: 'function' object has no attribute 'cache_clear