Skip to content

Commit

Permalink
Raise error if Cacheman.exists? can't connect to Redis
Browse files Browse the repository at this point in the history
  • Loading branch information
bmarkons committed Jul 17, 2020
1 parent dc5f6e8 commit 5d59dd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cacheman/backend/redis.ex
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ defmodule Cacheman.Backend.Redis do
case Redix.command(c, ["EXISTS", key]) do
{:ok, 1} -> true
{:ok, 0} -> false
_ -> false
{:error, reason} -> raise reason
end
end)
end
Expand Down

0 comments on commit 5d59dd2

Please sign in to comment.