bee.osql.cache

class CacheUtil:
@staticmethod
def add(sql: str, rs: Any):

add result to cache which relative sql.

Parameters
  • sql: SQL statement.
  • rs: result
@staticmethod
def get(sql: str) -> Any:

get result by sql.

Parameters
  • sql: SQL statement.
@staticmethod
def clear(sql: str):

clear result by sql.

Parameters
  • sql: SQL statement.