类 KVExecute

java.lang.Object
cn.yingyya.next.moment.api.database.kv.KVExecute

public class KVExecute extends Object
  • 字段详细资料

    • DEFAULT_CHARSET

      public static final Charset DEFAULT_CHARSET
  • 构造器详细资料

    • KVExecute

      public KVExecute(@NotNull @NotNull DataConnector<?> dataConnector)
  • 方法详细资料

    • of

      public static KVExecute of(@NotNull @NotNull DataConnector<?> dataConnector)
    • set

      public boolean set(String key, String value)
    • set

      public boolean set(String key, String value, boolean flush)
    • get

      public String get(String key, String defaultValue)
    • get

      @Nullable public @Nullable String get(String key)
    • set

      public boolean set(byte[] key, byte[] value)
    • get

      public byte[] get(byte[] key, byte[] defaultValue)
    • delete

      public boolean delete(String key)
    • delete

      public boolean delete(byte[] key)
    • deleteRange

      public boolean deleteRange(byte[] start, byte[] end)
    • flush

      public boolean flush()
    • multiGetAsList

      public List<byte[]> multiGetAsList(List<byte[]> keys)
    • multiGetAsMap

      public Map<byte[],byte[]> multiGetAsMap(List<byte[]> keys)
    • keyMayExist

      public boolean keyMayExist(byte[] key)
    • getAll

      public Map<byte[],byte[]> getAll()