Skip to content

Commit

Permalink
Merge pull request #769 from Extrawurst/patch-4
Browse files Browse the repository at this point in the history
fix getset command
  • Loading branch information
s-ludwig committed Aug 7, 2014
2 parents 277d6e6 + d2f3605 commit fbdcef6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/vibe/db/redis/redis.d
Original file line number Diff line number Diff line change
Expand Up @@ -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); }
Expand Down

0 comments on commit fbdcef6

Please sign in to comment.