DATAREDIS-444 - Return result of delete in DefaultHashOperation.

Delete in DefaultHashOperation returns now the result of the HDEL command.

Original pull request: #184.
CLA: 169220160326121428 (Ninad Divadkar)
This commit is contained in:
Ninad Divadkar
2016-03-25 17:39:54 -07:00
committed by Mark Paluch
parent 1b3fe81b61
commit 5f9d005cb3
5 changed files with 11 additions and 11 deletions

View File

@@ -134,8 +134,9 @@ public class DefaultHashOperationsTests<K, HK, HV> {
HV val2 = hashValueFactory.instance();
hashOps.put(key, key1, val1);
hashOps.put(key, key2, val2);
hashOps.delete(key, key1, key2);
Long numDeleted = hashOps.delete(key, key1, key2);
assertTrue(hashOps.keys(key).isEmpty());
assertEquals(2L, numDeleted.longValue());
}
/**