![JAR search and dependency download from the Maven repository](/logo.png)
com.wandoulabs.nedis.protocol.KeysCommands Maven / Gradle / Ivy
/**
* Copyright (c) 2015 Wandoujia Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.wandoulabs.nedis.protocol;
import io.netty.util.concurrent.Future;
import java.util.List;
/**
* {@code WAIT} is not supported yet.
*
* @author Apache9
* @see http://redis.io/commands#generic
*/
public interface KeysCommands {
Future del(byte[]... keys);
Future dump(byte[] key);
Future exists(byte[] key);
Future exists(byte[]... keys);
Future expire(byte[] key, long seconds);
Future expireat(byte[] key, long unixTimeSeconds);
Future> keys(byte[] pattern);
Future migrate(byte[] host, int port, byte[] key, int dstDb, long timeoutMs);
Future move(byte[] key, int db);
Future persist(byte[] key);
Future pexpire(byte[] key, long millis);
Future pexpireat(byte[] key, long unixTimeMs);
Future pttl(byte[] key);
Future randomkey();
Future rename(byte[] key, byte[] newKey);
Future renamenx(byte[] key, byte[] newKey);
Future restore(byte[] key, int ttlMs, byte[] serializedValue, boolean replace);
Future> scan(ScanParams params);
Future> sort(byte[] key);
Future> sort(byte[] key, SortParams params);
Future sort(byte[] key, byte[] dst);
Future sort(byte[] key, SortParams params, byte[] dst);
Future ttl(byte[] key);
Future type(byte[] key);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy