# Path: speedinfo/conf.py
# DEFAULTS = {
#     "SPEEDINFO_TESTS": False,
#     "SPEEDINFO_CACHED_RESPONSE_ATTR_NAME": "_is_cached",
#     "SPEEDINFO_STORAGE": None,
#     "SPEEDINFO_CACHE_STORAGE_CACHE_ALIAS": "default",
#     "SPEEDINFO_PROFILING_CONDITIONS": [],
#     "SPEEDINFO_EXCLUDE_URLS": [],
#     "SPEEDINFO_ADMIN_COLUMNS": (
#         ("View name", "{}", "view_name"),
#         ("HTTP method", "{}", "method"),
#         ("Anonymous calls", "{:.1f}%", "anon_calls_ratio"),
#         ("Cache hits", "{:.1f}%", "cache_hits_ratio"),
#         ("SQL queries per call", "{}", "sql_count_per_call"),
#         ("SQL time", "{:.1f}%", "sql_time_ratio"),
#         ("Total calls", "{}", "total_calls"),
#         ("Time per call", "{:.8f}", "time_per_call"),
#         ("Total time", "{:.4f}", "total_time"),
#     ),
# }
# class SpeedinfoSettings:
#     def __init__(self, defaults=None):
#     def __getattr__(self, name):


from django.core.cache import InvalidCacheBackendError
from django.utils.module_loading import import_string
from speedinfo.conf import speedinfo_settings
# coding: utf-8




def proxy_cache(location, params):
    backend = params.pop("CACHE_BACKEND")

    try:
        backend_cls = import_string(backend)

# Path: speedinfo/conf.py
# DEFAULTS = {
#     "SPEEDINFO_TESTS": False,
#     "SPEEDINFO_CACHED_RESPONSE_ATTR_NAME": "_is_cached",
#     "SPEEDINFO_STORAGE": None,
#     "SPEEDINFO_CACHE_STORAGE_CACHE_ALIAS": "default",
#     "SPEEDINFO_PROFILING_CONDITIONS": [],
#     "SPEEDINFO_EXCLUDE_URLS": [],
#     "SPEEDINFO_ADMIN_COLUMNS": (
#         ("View name", "{}", "view_name"),
#         ("HTTP method", "{}", "method"),
#         ("Anonymous calls", "{:.1f}%", "anon_calls_ratio"),
#         ("Cache hits", "{:.1f}%", "cache_hits_ratio"),
#         ("SQL queries per call", "{}", "sql_count_per_call"),
#         ("SQL time", "{:.1f}%", "sql_time_ratio"),
#         ("Total calls", "{}", "total_calls"),
#         ("Time per call", "{:.8f}", "time_per_call"),
#         ("Total time", "{:.4f}", "total_time"),
#     ),
# }
# class SpeedinfoSettings:
#     def __init__(self, defaults=None):
#     def __getattr__(self, name):


# Path: speedinfo/backends.py
from django.core.cache import InvalidCacheBackendError
from django.utils.module_loading import import_string
from speedinfo.conf import speedinfo_settings

# coding: utf-8




def proxy_cache(location, params):
    backend = params.pop("CACHE_BACKEND")

    try:
        backend_cls = import_string(backend)

    except ImportError as e: