niwibe/djangoredis

niwibe/django-redis

Changes on 2.0 (2012-04-17)

Now implemented sharding feature. For use it, see this example config:

CACHES = {
    'default': {
        'BACKEND': 'redis_cache.cache.ShardedRedisCache',
        'LOCATION': [
            '127.0.0.1:6379:1',
            '127.0.0.1:6379:2',
            'unix:/path/to/socket:3',
        ],
        'OPTIONS': {
            'PARSER_CLASS': 'redis.connection.HiredisParser'
        }
    }
}
原文地址:https://www.cnblogs.com/lexus/p/2475400.html