All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.wandoulabs.nedis.protocol.StringsCommands 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 java.util.List;

import io.netty.util.concurrent.Future;

/**
 * @author Apache9
 * @see http://redis.io/commands#string
 */
public interface StringsCommands {

    Future append(byte[] key, byte[] value);

    Future bitcount(byte[] key);

    Future bitcount(byte[] key, long startInclusive, long endInclusive);

    Future bitop(BitOp op, byte[] dst, byte[]... keys);

    Future bitpos(byte[] key, boolean bit);

    Future bitpos(byte[] key, boolean bit, long startInclusive);

    Future bitpos(byte[] key, boolean bit, long startInclusive, long endInclusive);

    Future decr(byte[] key);

    Future decrby(byte[] key, long delta);

    Future get(byte[] key);

    Future getbit(byte[] key, long offset);

    Future getrange(byte[] key, long startInclusive, long endInclusive);

    Future getset(byte[] key, byte[] value);

    Future incr(byte[] key);

    Future incrby(byte[] key, long delta);

    Future incrbyfloat(byte[] key, double delta);

    Future> mget(byte[]... keys);

    Future mset(byte[]... keysvalues);

    Future msetnx(byte[]... keysvalues);
    
    Future set(byte[] key, byte[] value);

    Future set(byte[] key, byte[] value, SetParams params);

    Future setbit(byte[] key, long offset, boolean bit);

    Future setrange(byte[] key, long offset, byte[] value);

    Future strlen(byte[] key);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy