# Path: djedi/utils/encoding.py

# 
# Path: djedi/compat.py
# def get_cache(name):
#     return caches[name]


import six
from django.core.cache import InvalidCacheBackendError
from djedi.utils.encoding import smart_str, smart_unicode
from cio.backends.base import CacheBackend
from django.core.cache.backends.locmem import LocMemCache
from djedi.compat import get_cache
            from django.core.cache import cache



class DjangoCacheBackend(CacheBackend):

    def __init__(self, **config):
        """
        Get cache backend. Look for djedi specific cache first, then fallback on default
        """
        super(DjangoCacheBackend, self).__init__(**config)

        try:
            cache_name = self.config.get('NAME', 'djedi')

# Path: djedi/utils/encoding.py

# 
# Path: djedi/compat.py
# def get_cache(name):
#     return caches[name]


# Path: djedi/backends/django/cache/backend.py
import six
from django.core.cache import InvalidCacheBackendError
from djedi.utils.encoding import smart_str, smart_unicode
from cio.backends.base import CacheBackend
from django.core.cache.backends.locmem import LocMemCache
from djedi.compat import get_cache
            from django.core.cache import cache




class DjangoCacheBackend(CacheBackend):

    def __init__(self, **config):
        """
        Get cache backend. Look for djedi specific cache first, then fallback on default
        """
        super(DjangoCacheBackend, self).__init__(**config)

        try:
            cache_name = self.config.get('NAME', 'djedi')

            cache = get_cache(cache_name)