redis tests - hashes

master
Alex 2022-03-26 19:30:43 +01:00
parent e56d822bde
commit 9da7c4cd82
1 changed files with 3 additions and 7 deletions

View File

@ -1,18 +1,14 @@
package net.krakatoa.proxy.redis; package net.krakatoa.proxy.redis;
import io.lettuce.core.Value;
import io.lettuce.core.dynamic.Commands; import io.lettuce.core.dynamic.Commands;
import io.lettuce.core.dynamic.annotation.Key;
import java.util.Map;
import reactor.core.publisher.Mono;
public interface RedisHashCommands extends Commands { public interface RedisHashCommands extends Commands {
Mono<Long> hdel(Key key, Key... fields); //Mono<Long> hdel(Key key, Key... fields);
Mono<Boolean> hset(Key key, Key field, Value value); //Mono<Boolean> hset(Key key, Key field, Value value);
Boolean hset(String key, String field, String value); Boolean hset(String key, String field, String value);
Mono<String> hmset(Key key, Map<Key, Value> map); //Mono<String> hmset(Key key, Map<Key, Value> map);
} }