New command: HINCRBY (Redis v2.0-dev).

This commit is contained in:
Daniele Alessandri
2010-03-29 12:29:44 +02:00
parent f3d7e5d31b
commit 17dff871bc
+6
View File
@@ -1230,6 +1230,8 @@ class RedisServer_vNext extends RedisServer_v1_2 {
/* commands operating on hashes */
'hset' => '\Predis\Commands\HashSet',
'hashSet' => '\Predis\Commands\HashSet',
'hincrby' => '\Predis\Commands\HashIncrementBy',
'hashIncrementBy' => '\Predis\Commands\HashIncrementBy',
'hget' => '\Predis\Commands\HashGet',
'hashGet' => '\Predis\Commands\HashGet',
'hdel' => '\Predis\Commands\HashDelete',
@@ -1762,6 +1764,10 @@ class HashSet extends \Predis\MultiBulkCommand {
public function getCommandId() { return 'HSET'; }
}
class HashIncrementBy extends \Predis\InlineCommand {
public function getCommandId() { return 'HINCRBY'; }
}
class HashGet extends \Predis\BulkCommand {
public function getCommandId() { return 'HGET'; }
}