Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
Advanced and thread-safe Java Redis client for synchronous, asynchronous, and
reactive usage. Supports Cluster, Sentinel, Pipelining, Auto-Reconnect, Codecs
and much more.
/*
* Copyright 2011-2016 the original author or authors.
*
* 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.lambdaworks.redis.api.reactive;
import java.util.List;
import java.util.Map;
import com.lambdaworks.redis.KeyValue;
import com.lambdaworks.redis.Value;
import com.lambdaworks.redis.MapScanCursor;
import com.lambdaworks.redis.ScanArgs;
import com.lambdaworks.redis.ScanCursor;
import com.lambdaworks.redis.StreamScanCursor;
import com.lambdaworks.redis.output.KeyStreamingChannel;
import com.lambdaworks.redis.output.KeyValueStreamingChannel;
import com.lambdaworks.redis.output.ValueStreamingChannel;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
/**
* Reactive executed commands for Hashes (Key-Value pairs).
*
* @param Key type.
* @param Value type.
* @author Mark Paluch
* @since 4.0
* @generated by com.lambdaworks.apigenerator.CreateReactiveApi
*/
public interface RedisHashReactiveCommands {
/**
* Delete one or more hash fields.
*
* @param key the key
* @param fields the field type: key
* @return Long integer-reply the number of fields that were removed from the hash, not including specified but non existing
* fields.
*/
Mono hdel(K key, K... fields);
/**
* Determine if a hash field exists.
*
* @param key the key
* @param field the field type: key
* @return Boolean integer-reply specifically:
*
* {@literal true} if the hash contains {@code field}. {@literal false} if the hash does not contain {@code field},
* or {@code key} does not exist.
*/
Mono hexists(K key, K field);
/**
* Get the value of a hash field.
*
* @param key the key
* @param field the field type: key
* @return V bulk-string-reply the value associated with {@code field}, or {@literal null} when {@code field} is not present
* in the hash or {@code key} does not exist.
*/
Mono hget(K key, K field);
/**
* Increment the integer value of a hash field by the given number.
*
* @param key the key
* @param field the field type: key
* @param amount the increment type: long
* @return Long integer-reply the value at {@code field} after the increment operation.
*/
Mono hincrby(K key, K field, long amount);
/**
* Increment the float value of a hash field by the given amount.
*
* @param key the key
* @param field the field type: key
* @param amount the increment type: double
* @return Double bulk-string-reply the value of {@code field} after the increment.
*/
Mono hincrbyfloat(K key, K field, double amount);
/**
* Get all the fields and values in a hash.
*
* @param key the key
* @return Map<K,V> array-reply list of fields and their values stored in the hash, or an empty list when {@code key}
* does not exist.
*/
Mono