redis tests - hashes
parent
f0d595f0fb
commit
972d453d79
|
@ -126,7 +126,7 @@ public class PostLoginListener implements Listener {
|
||||||
map.put("money", "101001");
|
map.put("money", "101001");
|
||||||
map.put("state", "online");
|
map.put("state", "online");
|
||||||
ProxySystem.getInstance().getRedisManager().getRedisHashCommands()
|
ProxySystem.getInstance().getRedisManager().getRedisHashCommands()
|
||||||
.hmset("player", proxiedPlayer.getUniqueId().toString(), map);
|
.hset("player", proxiedPlayer.getUniqueId().toString(), map);
|
||||||
|
|
||||||
MessageUnpacker unpacker = MessagePack.newDefaultUnpacker(packer.toByteArray());
|
MessageUnpacker unpacker = MessagePack.newDefaultUnpacker(packer.toByteArray());
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ public interface RedisHashCommands extends Commands {
|
||||||
|
|
||||||
Long hset(String key, String field, String... value);
|
Long hset(String key, String field, String... value);
|
||||||
|
|
||||||
String hmset(String key, String field, Map<String, String> map);
|
String hset(String key, String field, Map<String, String> map);
|
||||||
|
|
||||||
//Mono<String> hmset(Key key, Map<Key, Value> map);
|
//Mono<String> hmset(Key key, Map<Key, Value> map);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue