Closed rykov closed 9 years ago
Looks like CI fails because sorentwo/redis-activesupport
repo no longer exists. Would you like me to patch the Gemfile to redis-store/redis-activesupport
?
@rykov: Oops, I just pointed to the proper redis-activesupport in 4e24ae0. Also, that's the first time hound has run on this repo (pay no mind to the quoting comments).
This is great to have. Thanks for the PR!
@sorentwo I rebased against the latest master. Also, I don't agree with @houndci about single-quoted strings. I haven't done any tests, but I imagine non-interpolated strings in single quotes are marginally faster than double-quoted ones.
@rykov: Don't worry about houndci, I haven't configured it at all. There was an interesting showdown about single and double quotes recently which showed that there is no performance difference at all. Regardless, in the Ruby world I'm used to single quotes all the time--will keep that alive here.
In instances when
read_multi
orfetch_mutli
are called no keys, Redis throws this error:This PR is to handle this case gracefully following the behavior of
ActiveSupport::Cache::FileStore
. Both added tests include anamespace
option to make sure the empty check happens afterextract_options!