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:
committed by
Mark Paluch
parent
1b3fe81b61
commit
5f9d005cb3
@@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user