diff --git a/shard.lock b/shard.lock index f984b4a..29bd507 100644 --- a/shard.lock +++ b/shard.lock @@ -10,5 +10,5 @@ shards: redis: git: https://github.com/jgaskins/redis.git - version: 0.14.0 + version: 0.15.1 diff --git a/shard.yml b/shard.yml index a31595a..bf2d7fd 100644 --- a/shard.yml +++ b/shard.yml @@ -10,7 +10,7 @@ crystal: "1.0.0, < 2.0.0" dependencies: redis: github: jgaskins/redis - version: ~> 0.14.0 + version: ~> 0.15.0 development_dependencies: ameba: diff --git a/src/defense/redis_store.cr b/src/defense/redis_store.cr index 1049a4d..e4bcf0c 100644 --- a/src/defense/redis_store.cr +++ b/src/defense/redis_store.cr @@ -18,7 +18,7 @@ module Defense @redis.multi do |r| r.incr(key) r.expire(key, expires_in) - end.first.as(Int64) + end.as(Array).first.as(Int64) end def exists?(unprefixed_key : String) : Bool