diff --git a/source/vibe/db/redis/redis.d b/source/vibe/db/redis/redis.d index 62d38765e7..b8238e7ca4 100644 --- a/source/vibe/db/redis/redis.d +++ b/source/vibe/db/redis/redis.d @@ -236,7 +236,7 @@ struct RedisDatabase { T get(T)(string key) if(isValidRedisValueReturn!T) { return request!T("GET", key); } bool getBit(string key, long offset) { return request!bool("GETBIT", key, offset); } T getRange(T)(string key, long start, long end) if(isValidRedisValueReturn!T) { return request!T("GETRANGE", start, end); } - T getSet(T)(string key, T value) if(isValidRedisValueReturn!T) { return request!T("GET", key, value); } + T getSet(T)(string key, T value) if(isValidRedisValueReturn!T) { return request!T("GETSET", key, value); } long incr(string key, long value = 1) { return value == 1 ? request!long("INCR", key) : request!long("INCRBY", key, value); } long incr(string key, double value) { return request!long("INCRBYFLOAT", key, value); } RedisReply!T mget(T = string)(string[] keys) if(isValidRedisValueType!T) { return request!(RedisReply!T)("MGET", keys); }