vivekn / redis-simple-cache

Simple redis based cache for storing results of python function calls, json encoded strings or html.
Other
122 stars 69 forks source link

Add DoNotCache exception #22

Closed djgilcrease closed 10 years ago

djgilcrease commented 10 years ago

The DoNotCache exception is for use with the cache_it decorator to tell it to not cache this result, but still allow the result to be returned. It also wraps the storer call in a try/except catching the redis.ConnectionError. Since this is a cache decorator it should not throw an exception on a ConnectionError it should just log it and move on returning the result