Giter Site home page Giter Site logo

Comments (5)

niwinz avatar niwinz commented on July 20, 2024

Interesting! I will implement it in near future (few days).

Thanks for suggestion ;)

from django-redis.

askaliuk avatar askaliuk commented on July 20, 2024

@niwibe
Thank you very much for quick response.
If you don't have time - let me know. I'll send pull request.

from django-redis.

niwinz avatar niwinz commented on July 20, 2024

9ffa7ab

Now implements ignore exception per client, It lack of documentation and tests (I currently working on it)

from django-redis.

niwinz avatar niwinz commented on July 20, 2024

Now released 3.5.2 version with this feature.

from django-redis.

mrcoles avatar mrcoles commented on July 20, 2024

For anyone looking at this issue, the OPTIONS key is "IGNORE_EXCEPTIONS", not the global key of "DJANGO_REDIS_IGNORE_EXCEPTIONS".

CACHES = {
    'default': {
        'BACKEND': 'redis_cache.cache.RedisCache',
        'LOCATION': config['redis_url_first'],
        'OPTIONS': {
            'CLIENT_CLASS': 'redis_cache.client.DefaultClient',
            'IGNORE_EXCEPTIONS': True,
        }
    },
    'other': {
        'BACKEND': 'redis_cache.cache.RedisCache',
        'LOCATION': config['redis_url_second'],
        'OPTIONS': {
            'CLIENT_CLASS': 'redis_cache.client.DefaultClient',
            'IGNORE_EXCEPTIONS': False,
        }
    }  
}

from django-redis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.