Generated from api_cache.py on 2022-10-11 12:34:14.972233
Handle loading of api-cache data.
APICacheLoader(builtins.object)
Checks if an API GET request qualifies for a cache load and if it does allows you to provide the cached result.
def __init__(self, viewset, qset, filters)
Initialize self. See help(type(self)) for accurate signature.
def filter_fields(self, row)
Remove any unwanted fields from the resultset
according to the fields
filter specified in the request.
def load(self)
Load the cached response according to tag and depth.
def qualifies(self)
Check if request qualifies for a cache load.
CacheRedirect(builtins.Exception)
Raise this error to redirect to cache response during viewset.get_queryset or viewset.list()
Argument should be an APICacheLoader instance.
def __init__(self, loader)
Initialize self. See help(type(self)) for accurate signature.