Skip to content

Commit

Permalink
Merge pull request #467 from klickverbot/redis-zcount
Browse files Browse the repository at this point in the history
Fixed RedisClient.zcount.
  • Loading branch information
s-ludwig committed Jan 17, 2014
2 parents 46498d1 + b621fd8 commit 4925b1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/vibe/db/redis/redis.d
Expand Up @@ -465,7 +465,7 @@ final class RedisClient {
}

size_t zcount(string key, double min, double max) {
return request!size_t("SCARD", cast(ubyte[])key);
return request!size_t("ZCOUNT", cast(ubyte[])key, cast(ubyte[])to!string(min), cast(ubyte[])to!string(max));
}

double zincrby(string key, double value, string member) {
Expand Down

0 comments on commit 4925b1d

Please sign in to comment.