disqus/nydus — pull request #13 by tschellenbach (2012-05-15 13:34:28+00:00)
Title: Fail silently support

When using redis as a cache you don't always want your app to fail if redis is unavailable.
This pull requests adds support for a fail_silently parameter.
Allowing your app to gracefully fall back to the database instead of breaking.
The default behaviour is unchanged:

'redis': {
'engine': 'nydus.db.backends.redis.Redis',
'router': 'nydus.db.routers.redis.PrefixPartitionRouter',
'hosts': {
'hash:entity:': {'db': 0, 'host': 'entities.redis.goteam.be', 'port': 6379, 'fail_silently': True},
}
},

Cheers,
Thierry Schellenbach
CTO / Co-Founder
Fashiolista.com