

def __init__(self, *args, **kwargs):
    super(CachedFilesMixin, self).__init__(*args, **kwargs)
    try:
        self.cache = get_cache('staticfiles')
    except (InvalidCacheBackendError, ValueError):
        self.cache = default_cache
    self._patterns = SortedDict()
    for (extension, patterns) in self.patterns:
        for pattern in patterns:
            compiled = re.compile(pattern)
            self._patterns.setdefault(extension, []).append(compiled)

dataset/ETHPy150Open jezdez-archive/django-staticfiles/staticfiles/storage.py CachedFilesMixin.__init__/original