vanna.flask

class Cache(abc.ABC):

Helper class that provides a standard way to create an ABC using inheritance.

@abstractmethod
def generate_id(self, *args, **kwargs):
@abstractmethod
def get(self, id, field):
@abstractmethod
def get_all(self, field_list) -> list:
@abstractmethod
def set(self, id, field, value):
@abstractmethod
def delete(self, id):
class MemoryCache(Cache):

Helper class that provides a standard way to create an ABC using inheritance.

cache
def generate_id(self, *args, **kwargs):
def set(self, id, field, value):
def get(self, id, field):
def get_all(self, field_list) -> list:
def delete(self, id):
class VannaFlaskApp:
VannaFlaskApp(vn, cache: Cache = <MemoryCache object>)
flask_app = None
def requires_cache(self, fields):
vn
cache
def run(self):