Search in sources :

Example 1 with KeyStringValueSet

use of com.moilioncircle.redis.replicator.rdb.datatype.KeyStringValueSet in project rocketmq-externals by apache.

the class ProcessorTest method getKVCommandPair.

private KeyValuePair getKVCommandPair() {
    KeyValuePair event = new KeyStringValueSet();
    event.setValueRdbType(RDB_TYPE_SET);
    event.setKey("mySet".getBytes());
    Set<byte[]> values = new HashSet<>();
    values.add("myValue".getBytes());
    values.add("myValue2".getBytes());
    event.setValue(values);
    return event;
}
Also used : KeyValuePair(com.moilioncircle.redis.replicator.rdb.datatype.KeyValuePair) KeyStringValueSet(com.moilioncircle.redis.replicator.rdb.datatype.KeyStringValueSet) HashSet(java.util.HashSet)

Aggregations

KeyStringValueSet (com.moilioncircle.redis.replicator.rdb.datatype.KeyStringValueSet)1 KeyValuePair (com.moilioncircle.redis.replicator.rdb.datatype.KeyValuePair)1 HashSet (java.util.HashSet)1