When I use RedisStore.get, if some error throw in the callback and forget to catch it, it will catch by ‘RedisStore.get’ and do callback(err) again!
In the old test.js, when test RedisStore.length, it will throw an error [TypeError: Object # has no method 'length'], but it will catch in RedisStore.get. I think the try catch in function get should only catch JSON.parse error.
Also I update the test.js ,remove test of RedisStore.length and RedisStore.clear.
fix bug of get & update the test
update test, remove clear & length
fix try catch
yikes yeah this is really noisy, and you don't follow the existing styling at all (return fn&&fn(err); etc) also what is multi_redis?
reset to connect-redis
add test for exception cache
Sorry. I used to modified this module to suits my own redis module multi_redis, so It's such a noisy. I merged the newest version and fix the code style.
+1, I'll volunteer to rewrite if the noise is still holding you back from merging
yeah ideally we squash so there's not 6 commits
fix try catch bug of get & update the test
Merge branch 'master' of github.com:dead-horse/connect-redis
move this to #65