Package io.toro.martini.redis
Class RedisHashMethods
- java.lang.Object
-
- io.toro.martini.redis.RedisBaseMethods
-
- io.toro.martini.redis.RedisHashMethods
-
public class RedisHashMethods extends io.toro.martini.redis.RedisBaseMethodsMethods for Hashes (Key-Value pairs).
-
-
Constructor Summary
Constructors Constructor Description RedisHashMethods(io.toro.martini.database.DataSourceManager dataSourceManager)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Longhdel(String connectionName, Object key, GloopExecutionContext context, Object... fields)Delete one or more hash fields.static Future<Long>hdelAsync(String connectionName, Object key, GloopExecutionContext context, Object... fields)Asynchronously delete one or more hash fields.static Booleanhexists(String connectionName, Object key, Object field, GloopExecutionContext context)Determine if a hash field exists.static Future<Boolean>hexistsAsync(String connectionName, Object key, Object field, GloopExecutionContext context)Asynchronously determine if a hash field exists.static Objecthget(String connectionName, Object key, Object field, GloopExecutionContext context)Get the value of a hash field.static Longhgetall(String connectionName, KeyValueStreamingChannel<Object,Object> channel, Object key, GloopExecutionContext context)Stream over all the fields and values in a hash.static GloopModelhgetall(String connectionName, Object key, GloopExecutionContext context)Get all the fields and values in a hash.static Future<Long>hgetallAsync(String connectionName, KeyValueStreamingChannel<Object,Object> channel, Object key, GloopExecutionContext context)Asynchronously stream over all the fields and values in a hash.static Future<Map<Object,Object>>hgetallAsync(String connectionName, Object key, GloopExecutionContext context)Asynchronously get all the fields and values in a hash.static Future<Object>hgetAsync(String connectionName, Object key, Object field, GloopExecutionContext context)Asynchronously get the value of a hash field.static Longhincrby(String connectionName, Object key, Object field, long amount, GloopExecutionContext context)Increment the integer value of a hash field by the given number.static Future<Long>hincrbyAsync(String connectionName, Object key, Object field, long amount, GloopExecutionContext context)Asynchronously increment the integer value of a hash field by the given number.static Doublehincrbyfloat(String connectionName, Object key, Object field, double amount, GloopExecutionContext context)Increment the float value of a hash field by the given amount.static Future<Double>hincrbyfloatAsync(String connectionName, Object key, Object field, double amount, GloopExecutionContext context)Asynchronously increment the float value of a hash field by the given amount.static Longhkeys(String connectionName, KeyStreamingChannel<Object> channel, Object key, GloopExecutionContext context)Stream over all the fields in a hash.static List<Object>hkeys(String connectionName, Object key, GloopExecutionContext context)Get all the fields in a hash.static Future<Long>hkeysAsync(String connectionName, KeyStreamingChannel<Object> channel, Object key, GloopExecutionContext context)Asynchronously stream over all the fields in a hash.static Future<List<Object>>hkeysAsync(String connectionName, Object key, GloopExecutionContext context)Asynchronously get all the fields in a hash.static Longhlen(String connectionName, Object key, GloopExecutionContext context)Get the number of fields in a hash.static Future<Long>hlenAsync(String connectionName, Object key, GloopExecutionContext context)Asynchronously get the number of fields in a hash.static Longhmget(String connectionName, KeyValueStreamingChannel<Object,Object> channel, Object key, GloopExecutionContext context, Object... fields)Stream over the values of all the given hash fields.static GloopModelhmget(String connectionName, Object key, GloopExecutionContext context, Object... fields)Get the values of all the given hash fields.static Future<Long>hmgetAsync(String connectionName, KeyValueStreamingChannel<Object,Object> channel, Object key, GloopExecutionContext context, Object... fields)Asynchronously stream over the values of all the given hash fields.static Future<List<KeyValue<Object,Object>>>hmgetAsync(String connectionName, Object key, GloopExecutionContext context, Object... fields)Asynchronously get the values of all the given hash fields.static Stringhmset(String connectionName, Object key, GloopModel redisMap, GloopExecutionContext context)Set multiple hash fields to multiple values.static Future<String>hmsetAsync(String connectionName, Object key, GloopModel redisMap, GloopExecutionContext context)Asynchronously set multiple hash fields to multiple values.static StreamScanCursorhscan(String connectionName, KeyValueStreamingChannel<Object,Object> channel, Object key, ScanCursor scanCursor, GloopExecutionContext context)Incrementally iterate hash fields and associated values.static StreamScanCursorhscan(String connectionName, KeyValueStreamingChannel<Object,Object> channel, Object key, ScanCursor scanCursor, GloopModel scanArgs, GloopExecutionContext context)Incrementally iterate hash fields and associated values.static StreamScanCursorhscan(String connectionName, KeyValueStreamingChannel<Object,Object> channel, Object key, GloopExecutionContext context)Incrementally iterate hash fields and associated values.static StreamScanCursorhscan(String connectionName, KeyValueStreamingChannel<Object,Object> channel, Object key, GloopModel scanArgs, GloopExecutionContext context)Incrementally iterate hash fields and associated values.static MapScanCursor<Object,Object>hscan(String connectionName, Object key, ScanCursor scanCursor, GloopExecutionContext context)Incrementally iterate hash fields and associated values.static MapScanCursor<Object,Object>hscan(String connectionName, Object key, ScanCursor scanCursor, GloopModel scanArgs, GloopExecutionContext context)Incrementally iterate hash fields and associated values.static MapScanCursor<Object,Object>hscan(String connectionName, Object key, GloopExecutionContext context)Incrementally iterate hash fields and associated values.static MapScanCursor<Object,Object>hscan(String connectionName, Object key, GloopModel scanArgs, GloopExecutionContext context)Incrementally iterate hash fields and associated values.static Future<StreamScanCursor>hscanAsync(String connectionName, KeyValueStreamingChannel<Object,Object> channel, Object key, ScanCursor scanCursor, GloopExecutionContext context)Asynchronously incrementally iterate hash fields and associated values.static Future<StreamScanCursor>hscanAsync(String connectionName, KeyValueStreamingChannel<Object,Object> channel, Object key, ScanCursor scanCursor, GloopModel scanArgs, GloopExecutionContext context)Asynchronously incrementally iterate hash fields and associated values.static Future<StreamScanCursor>hscanAsync(String connectionName, KeyValueStreamingChannel<Object,Object> channel, Object key, GloopExecutionContext context)Asynchronously incrementally iterate hash fields and associated values.static Future<StreamScanCursor>hscanAsync(String connectionName, KeyValueStreamingChannel<Object,Object> channel, Object key, GloopModel scanArgs, GloopExecutionContext context)Asynchronously incrementally iterate hash fields and associated values.static Future<MapScanCursor<Object,Object>>hscanAsync(String connectionName, Object key, ScanCursor scanCursor, GloopExecutionContext context)Asynchronously incrementally iterate hash fields and associated values.static Future<MapScanCursor<Object,Object>>hscanAsync(String connectionName, Object key, ScanCursor scanCursor, GloopModel scanArgs, GloopExecutionContext context)Asynchronously incrementally iterate hash fields and associated values.static Future<MapScanCursor<Object,Object>>hscanAsync(String connectionName, Object key, GloopExecutionContext context)Asynchronously incrementally iterate hash fields and associated values.static Future<MapScanCursor<Object,Object>>hscanAsync(String connectionName, Object key, GloopModel scanArgs, GloopExecutionContext context)Asynchronously incrementally iterate hash fields and associated values.static Booleanhset(String connectionName, Object key, Object field, Object value, GloopExecutionContext context)Set the string value of a hash field.static Future<Boolean>hsetAsync(String connectionName, Object key, Object field, Object value, GloopExecutionContext context)Asynchronously set the string value of a hash field.static Booleanhsetnx(String connectionName, Object key, Object field, Object value, GloopExecutionContext context)Set the value of a hash field, only if the field does not exist.static Future<Boolean>hsetnxAsync(String connectionName, Object key, Object field, Object value, GloopExecutionContext context)Asynchronously set the value of a hash field, only if the field does not exist.static Longhstrlen(String connectionName, Object key, Object field, GloopExecutionContext context)Get the string length of the field value in a hash.static Future<Long>hstrlenAsync(String connectionName, Object key, Object field, GloopExecutionContext context)Asynchronously get the string length of the field value in a hash.static Longhvals(String connectionName, ValueStreamingChannel<Object> channel, Object key, GloopExecutionContext context)Stream over all the values in a hash.static List<Object>hvals(String connectionName, Object key, GloopExecutionContext context)Get all the values in a hash.static Future<Long>hvalsAsync(String connectionName, ValueStreamingChannel<Object> channel, Object key, GloopExecutionContext context)Asynchronously stream over all the values in a hash.static Future<List<Object>>hvalsAsync(String connectionName, Object key, GloopExecutionContext context)Asynchronously get all the values in a hash.
-
-
-
Constructor Detail
-
RedisHashMethods
@Autowired RedisHashMethods(io.toro.martini.database.DataSourceManager dataSourceManager)
-
-
Method Detail
-
hdel
@GloopParameter(name="redisHdelOutput") public static Long hdel(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, GloopExecutionContext context, @GloopParameter(allowNull=false) Object... fields)
Delete one or more hash fields.- Parameters:
connectionName- The Martini Runtime Redis connection pool namekey- the keyfields- the field type: key- Returns:
- Long integer-reply the number of fields that were removed from the hash, not including specified but non existing fields.
-
hdelAsync
@GloopParameter(name="redisFutureHdelOutput") public static Future<Long> hdelAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, GloopExecutionContext context, @GloopParameter(allowNull=false) Object... fields)
Asynchronously delete one or more hash fields.- Parameters:
connectionName- The Martini Runtime Redis connection pool namekey- the keyfields- the field type: key- Returns:
- long integer-reply the number of fields that were removed from the hash, not including specified but non existing fields.
-
hexists
@GloopParameter(name="redisHexistsOutput") public static Boolean hexists(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) Object field, GloopExecutionContext context)
Determine if a hash field exists.- Parameters:
connectionName- The Martini Runtime Redis connection pool namekey- the keyfield- the field type: key- Returns:
- Boolean integer-reply specifically: true if the hash contains
field. false if the hash does not containfield, orkeydoes not exist.
-
hexistsAsync
@GloopParameter(name="redisFutureHexistsOutput") public static Future<Boolean> hexistsAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) Object field, GloopExecutionContext context)
Asynchronously determine if a hash field exists.- Parameters:
connectionName- The Martini Runtime Redis connection pool namekey- the keyfield- the field type: key- Returns:
- boolean integer-reply specifically: true if the hash contains
field. false if the hash does not containfield, orkeydoes not exist.
-
hget
@GloopParameter(name="redisHgetOutput") public static Object hget(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) Object field, GloopExecutionContext context)
Get the value of a hash field.- Parameters:
connectionName- The Martini Runtime Redis connection pool namekey- the keyfield- the field type: key- Returns:
- V bulk-string-reply the value associated with
field, or null whenfieldis not present in the hash orkeydoes not exist.
-
hgetAsync
@GloopParameter(name="redisFutureHgetOutput") public static Future<Object> hgetAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) Object field, GloopExecutionContext context)
Asynchronously get the value of a hash field.- Parameters:
connectionName- The Martini Runtime Redis connection pool namekey- the keyfield- the field type: key- Returns:
- v bulk-string-reply the value associated with
field, or null whenfieldis not present in the hash orkeydoes not exist.
-
hincrby
@GloopParameter(name="redisHincrbyOutput") public static Long hincrby(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) Object field, @GloopParameter(allowNull=false) long amount, GloopExecutionContext context)
Increment the integer value of a hash field by the given number.- Parameters:
connectionName- The Martini Runtime Redis connection pool namekey- the keyfield- the field type: keyamount- the increment type: long- Returns:
- Long integer-reply the value at
fieldafter the increment operation.
-
hincrbyAsync
@GloopParameter(name="redisFutureHincrbyOutput") public static Future<Long> hincrbyAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) Object field, @GloopParameter(allowNull=false) long amount, GloopExecutionContext context)
Asynchronously increment the integer value of a hash field by the given number.- Parameters:
connectionName- The Martini Runtime Redis connection pool namekey- the keyfield- the field type: keyamount- the increment type: long- Returns:
- long integer-reply the value at
fieldafter the increment operation.
-
hincrbyfloat
@GloopParameter(name="redisHincrbyfloatOutput") public static Double hincrbyfloat(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) Object field, @GloopParameter(allowNull=false) double amount, GloopExecutionContext context)
Increment the float value of a hash field by the given amount.- Parameters:
connectionName- The Martini Runtime Redis connection pool namekey- the keyfield- the field type: keyamount- the increment type: double- Returns:
- Double bulk-string-reply the value of
fieldafter the increment.
-
hincrbyfloatAsync
@GloopParameter(name="redisFutureHincrbyfloatOutput") public static Future<Double> hincrbyfloatAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) Object field, @GloopParameter(allowNull=false) double amount, GloopExecutionContext context)
Asynchronously increment the float value of a hash field by the given amount.- Parameters:
connectionName- The Martini Runtime Redis connection pool namekey- the keyfield- the field type: keyamount- the increment type: double- Returns:
- double bulk-string-reply the value of
fieldafter the increment.
-
hgetall
@GloopObjectParameter("output{\nredisMap[]{\n name:object\n value:object\n}\n}") public static GloopModel hgetall(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, GloopExecutionContext context)
Get all the fields and values in a hash.- Parameters:
connectionName- The Martini Runtime Redis connection pool namekey- the key- Returns:
- Map<K,V> array-reply list of fields and their values stored in the hash, or an empty list when
keydoes not exist.
-
hgetall
@GloopParameter(name="redisHgetallOutput") public static Long hgetall(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) KeyValueStreamingChannel<Object,Object> channel, @GloopParameter(allowNull=false) Object key, GloopExecutionContext context)
Stream over all the fields and values in a hash.- Parameters:
connectionName- The Martini Runtime Redis connection pool namechannel- the channelkey- the key- Returns:
- Long count of the keys.
-
hgetallAsync
@GloopParameter(name="redisFutureHgetallOutput") public static Future<Long> hgetallAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) KeyValueStreamingChannel<Object,Object> channel, @GloopParameter(allowNull=false) Object key, GloopExecutionContext context)
Asynchronously stream over all the fields and values in a hash.- Parameters:
connectionName- The Martini Runtime Redis connection pool namechannel- the channelkey- the key- Returns:
- long count of the keys.
-
hgetallAsync
@GloopParameter(name="redisFutureHgetallOutput") public static Future<Map<Object,Object>> hgetallAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, GloopExecutionContext context)
Asynchronously get all the fields and values in a hash.- Parameters:
connectionName- The Martini Runtime Redis connection pool namekey- the key- Returns:
- map<K,V> array-reply list of fields and their values stored in the hash, or an empty list when
keydoes not exist.
-
hkeys
@GloopParameter(name="redisHkeysOutput") public static List<Object> hkeys(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, GloopExecutionContext context)
Get all the fields in a hash.- Parameters:
connectionName- The Martini Runtime Redis connection pool namekey- the key- Returns:
- List<K> array-reply list of fields in the hash, or an empty list when
keydoes not exist.
-
hkeys
@GloopParameter(name="redisHkeysOutput") public static Long hkeys(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) KeyStreamingChannel<Object> channel, @GloopParameter(allowNull=false) Object key, GloopExecutionContext context)
Stream over all the fields in a hash.- Parameters:
connectionName- The Martini Runtime Redis connection pool namechannel- the channelkey- the key- Returns:
- Long count of the keys.
-
hkeysAsync
@GloopParameter(name="redisFutureHkeysOutput") public static Future<Long> hkeysAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) KeyStreamingChannel<Object> channel, @GloopParameter(allowNull=false) Object key, GloopExecutionContext context)
Asynchronously stream over all the fields in a hash.- Parameters:
connectionName- The Martini Runtime Redis connection pool namechannel- the channelkey- the key- Returns:
- long count of the keys.
-
hkeysAsync
@GloopParameter(name="redisFutureHkeysOutput") public static Future<List<Object>> hkeysAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, GloopExecutionContext context)
Asynchronously get all the fields in a hash.- Parameters:
connectionName- The Martini Runtime Redis connection pool namekey- the key- Returns:
- list<K> array-reply list of fields in the hash, or an empty list when
keydoes not exist.
-
hlen
@GloopParameter(name="redisHlenOutput") public static Long hlen(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, GloopExecutionContext context)
Get the number of fields in a hash.- Parameters:
connectionName- The Martini Runtime Redis connection pool namekey- the key- Returns:
- Long integer-reply number of fields in the hash, or
0whenkeydoes not exist.
-
hlenAsync
@GloopParameter(name="redisFutureHlenOutput") public static Future<Long> hlenAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, GloopExecutionContext context)
Asynchronously get the number of fields in a hash.- Parameters:
connectionName- The Martini Runtime Redis connection pool namekey- the key- Returns:
- long integer-reply number of fields in the hash, or
0whenkeydoes not exist.
-
hmget
@GloopObjectParameter("output{\n redisKeyValues[]{\n key:object\n value:object\n }\n}") public static GloopModel hmget(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, GloopExecutionContext context, @GloopParameter(allowNull=false) Object... fields)
Get the values of all the given hash fields.- Parameters:
connectionName- The Martini Runtime Redis connection pool namekey- the keyfields- the field type: key- Returns:
- List<V> array-reply list of values associated with the given fields, in the same
-
hmget
@GloopParameter(name="redisHmgetOutput") public static Long hmget(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) KeyValueStreamingChannel<Object,Object> channel, @GloopParameter(allowNull=false) Object key, GloopExecutionContext context, @GloopParameter(allowNull=false) Object... fields)
Stream over the values of all the given hash fields.- Parameters:
connectionName- The Martini Runtime Redis connection pool namechannel- the channelkey- the keyfields- the fields- Returns:
- Long count of the keys
-
hmgetAsync
@GloopParameter(name="redisFutureHmgetOutput") public static Future<List<KeyValue<Object,Object>>> hmgetAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, GloopExecutionContext context, @GloopParameter(allowNull=false) Object... fields)
Asynchronously get the values of all the given hash fields.- Parameters:
connectionName- The Martini Runtime Redis connection pool namekey- the keyfields- the field type: key- Returns:
- list<V> array-reply list of values associated with the given fields, in the same
-
hmgetAsync
@GloopParameter(name="redisFutureHmgetOutput") public static Future<Long> hmgetAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) KeyValueStreamingChannel<Object,Object> channel, @GloopParameter(allowNull=false) Object key, GloopExecutionContext context, @GloopParameter(allowNull=false) Object... fields)
Asynchronously stream over the values of all the given hash fields.- Parameters:
connectionName- The Martini Runtime Redis connection pool namechannel- the channelkey- the keyfields- the fields- Returns:
- long count of the keys
-
hmset
@GloopParameter(name="redisHmsetOutput") public static String hmset(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopObjectParameter("redisMap[]{\n name:object\n value:object\n}\n") GloopModel redisMap, GloopExecutionContext context)
Set multiple hash fields to multiple values.- Parameters:
connectionName- The Martini Runtime Redis connection pool namekey- the keyredisMap- the key/value pairs- Returns:
- String simple-string-reply
-
hmsetAsync
@GloopParameter(name="redisFutureHmsetOutput") public static Future<String> hmsetAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopObjectParameter("redisMap[]{\n name:object\n value:object\n}\n") GloopModel redisMap, GloopExecutionContext context)
Asynchronously set multiple hash fields to multiple values.- Parameters:
connectionName- The Martini Runtime Redis connection pool namekey- the keyredisMap- the key/value pairs- Returns:
- string simple-string-reply
-
hscan
@GloopParameter(name="redisHscanOutput") public static MapScanCursor<Object,Object> hscan(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, GloopExecutionContext context)
Incrementally iterate hash fields and associated values.- Parameters:
connectionName- The Martini Runtime Redis connection pool namekey- the key- Returns:
- MapScanCursor<K, V> map scan cursor.
-
hscan
@GloopParameter(name="redisHscanOutput") public static MapScanCursor<Object,Object> hscan(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopObjectParameter("scanArgs{\n limit:long:Limit the scan by count:false\n match::Set the match filter:false\n}\n") GloopModel scanArgs, GloopExecutionContext context)
Incrementally iterate hash fields and associated values.- Parameters:
connectionName- The Martini Runtime Redis connection pool namekey- the keyscanArgs- scan arguments- Returns:
- MapScanCursor<K, V> map scan cursor.
-
hscan
@GloopParameter(name="redisHscanOutput") public static MapScanCursor<Object,Object> hscan(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) ScanCursor scanCursor, @GloopObjectParameter("scanArgs{\n limit:long:Limit the scan by count:false\n match::Set the match filter:false\n}\n") GloopModel scanArgs, GloopExecutionContext context)
Incrementally iterate hash fields and associated values.- Parameters:
connectionName- The Martini Runtime Redis connection pool namekey- the keyscanCursor- cursor to resume from a previous scan, must not be nullscanArgs- scan arguments- Returns:
- MapScanCursor<K, V> map scan cursor.
-
hscan
@GloopParameter(name="redisHscanOutput") public static MapScanCursor<Object,Object> hscan(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) ScanCursor scanCursor, GloopExecutionContext context)
Incrementally iterate hash fields and associated values.- Parameters:
connectionName- The Martini Runtime Redis connection pool namekey- the keyscanCursor- cursor to resume from a previous scan, must not be null- Returns:
- MapScanCursor<K, V> map scan cursor.
-
hscan
@GloopParameter(name="redisHscanOutput") public static StreamScanCursor hscan(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) KeyValueStreamingChannel<Object,Object> channel, @GloopParameter(allowNull=false) Object key, GloopExecutionContext context)
Incrementally iterate hash fields and associated values.- Parameters:
connectionName- The Martini Runtime Redis connection pool namechannel- streaming channel that receives a call for every key-value pairkey- the key- Returns:
- StreamScanCursor scan cursor.
-
hscan
@GloopParameter(name="redisHscanOutput") public static StreamScanCursor hscan(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) KeyValueStreamingChannel<Object,Object> channel, @GloopParameter(allowNull=false) Object key, @GloopObjectParameter("scanArgs{\n limit:long:Limit the scan by count:false\n match::Set the match filter:false\n}\n") GloopModel scanArgs, GloopExecutionContext context)
Incrementally iterate hash fields and associated values.- Parameters:
connectionName- The Martini Runtime Redis connection pool namechannel- streaming channel that receives a call for every key-value pairkey- the keyscanArgs- scan arguments- Returns:
- StreamScanCursor scan cursor.
-
hscan
@GloopParameter(name="redisHscanOutput") public static StreamScanCursor hscan(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) KeyValueStreamingChannel<Object,Object> channel, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) ScanCursor scanCursor, @GloopObjectParameter("scanArgs{\n limit:long:Limit the scan by count:false\n match::Set the match filter:false\n}\n") GloopModel scanArgs, GloopExecutionContext context)
Incrementally iterate hash fields and associated values.- Parameters:
connectionName- The Martini Runtime Redis connection pool namechannel- streaming channel that receives a call for every key-value pairkey- the keyscanCursor- cursor to resume from a previous scan, must not be nullscanArgs- scan arguments- Returns:
- StreamScanCursor scan cursor.
-
hscan
@GloopParameter(name="redisHscanOutput") public static StreamScanCursor hscan(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) KeyValueStreamingChannel<Object,Object> channel, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) ScanCursor scanCursor, GloopExecutionContext context)
Incrementally iterate hash fields and associated values.- Parameters:
connectionName- The Martini Runtime Redis connection pool namechannel- streaming channel that receives a call for every key-value pairkey- the keyscanCursor- cursor to resume from a previous scan, must not be null- Returns:
- StreamScanCursor scan cursor.
-
hscanAsync
@GloopParameter(name="redisFutureHscanOutput") public static Future<MapScanCursor<Object,Object>> hscanAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, GloopExecutionContext context)
Asynchronously incrementally iterate hash fields and associated values.- Parameters:
connectionName- The Martini Runtime Redis connection pool namekey- the key- Returns:
- mapScanCursor<K, v> map scan cursor.
-
hscanAsync
@GloopParameter(name="redisFutureHscanOutput") public static Future<MapScanCursor<Object,Object>> hscanAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopObjectParameter("scanArgs{\n limit:long:Limit the scan by count:false\n match::Set the match filter:false\n}\n") GloopModel scanArgs, GloopExecutionContext context)
Asynchronously incrementally iterate hash fields and associated values.- Parameters:
connectionName- The Martini Runtime Redis connection pool namekey- the keyscanArgs- scan arguments- Returns:
- mapScanCursor<K, v> map scan cursor.
-
hscanAsync
@GloopParameter(name="redisFutureHscanOutput") public static Future<MapScanCursor<Object,Object>> hscanAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) ScanCursor scanCursor, @GloopObjectParameter("scanArgs{\n limit:long:Limit the scan by count:false\n match::Set the match filter:false\n}\n") GloopModel scanArgs, GloopExecutionContext context)
Asynchronously incrementally iterate hash fields and associated values.- Parameters:
connectionName- The Martini Runtime Redis connection pool namekey- the keyscanCursor- cursor to resume from a previous scan, must not be nullscanArgs- scan arguments- Returns:
- mapScanCursor<K, v> map scan cursor.
-
hscanAsync
@GloopParameter(name="redisFutureHscanOutput") public static Future<MapScanCursor<Object,Object>> hscanAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) ScanCursor scanCursor, GloopExecutionContext context)
Asynchronously incrementally iterate hash fields and associated values.- Parameters:
connectionName- The Martini Runtime Redis connection pool namekey- the keyscanCursor- cursor to resume from a previous scan, must not be null- Returns:
- mapScanCursor<K, v> map scan cursor.
-
hscanAsync
@GloopParameter(name="redisFutureHscanOutput") public static Future<StreamScanCursor> hscanAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) KeyValueStreamingChannel<Object,Object> channel, @GloopParameter(allowNull=false) Object key, GloopExecutionContext context)
Asynchronously incrementally iterate hash fields and associated values.- Parameters:
connectionName- The Martini Runtime Redis connection pool namechannel- streaming channel that receives a call for every key-value pairkey- the key- Returns:
- streamScanCursor scan cursor.
-
hscanAsync
@GloopParameter(name="redisFutureHscanOutput") public static Future<StreamScanCursor> hscanAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) KeyValueStreamingChannel<Object,Object> channel, @GloopParameter(allowNull=false) Object key, @GloopObjectParameter("scanArgs{\n limit:long:Limit the scan by count:false\n match::Set the match filter:false\n}\n") GloopModel scanArgs, GloopExecutionContext context)
Asynchronously incrementally iterate hash fields and associated values.- Parameters:
connectionName- The Martini Runtime Redis connection pool namechannel- streaming channel that receives a call for every key-value pairkey- the keyscanArgs- scan arguments- Returns:
- streamScanCursor scan cursor.
-
hscanAsync
@GloopParameter(name="redisFutureHscanOutput") public static Future<StreamScanCursor> hscanAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) KeyValueStreamingChannel<Object,Object> channel, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) ScanCursor scanCursor, @GloopObjectParameter("scanArgs{\n limit:long:Limit the scan by count:false\n match::Set the match filter:false\n}\n") GloopModel scanArgs, GloopExecutionContext context)
Asynchronously incrementally iterate hash fields and associated values.- Parameters:
connectionName- The Martini Runtime Redis connection pool namechannel- streaming channel that receives a call for every key-value pairkey- the keyscanCursor- cursor to resume from a previous scan, must not be nullscanArgs- scan arguments- Returns:
- streamScanCursor scan cursor.
-
hscanAsync
@GloopParameter(name="redisFutureHscanOutput") public static Future<StreamScanCursor> hscanAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) KeyValueStreamingChannel<Object,Object> channel, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) ScanCursor scanCursor, GloopExecutionContext context)
Asynchronously incrementally iterate hash fields and associated values.- Parameters:
connectionName- The Martini Runtime Redis connection pool namechannel- streaming channel that receives a call for every key-value pairkey- the keyscanCursor- cursor to resume from a previous scan, must not be null- Returns:
- streamScanCursor scan cursor.
-
hset
@GloopParameter(name="redisHsetOutput") public static Boolean hset(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) Object field, @GloopParameter(allowNull=false) Object value, GloopExecutionContext context)
Set the string value of a hash field.- Parameters:
connectionName- The Martini Runtime Redis connection pool namekey- the keyfield- the field type: keyvalue- the value- Returns:
- Boolean integer-reply specifically: true if
fieldis a new field in the hash andvaluewas set. false iffieldalready exists in the hash and the value was updated.
-
hsetAsync
@GloopParameter(name="redisFutureHsetOutput") public static Future<Boolean> hsetAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) Object field, @GloopParameter(allowNull=false) Object value, GloopExecutionContext context)
Asynchronously set the string value of a hash field.- Parameters:
connectionName- The Martini Runtime Redis connection pool namekey- the keyfield- the field type: keyvalue- the value- Returns:
- boolean integer-reply specifically: true if
fieldis a new field in the hash andvaluewas set. false iffieldalready exists in the hash and the value was updated.
-
hsetnx
@GloopParameter(name="redisHsetnxOutput") public static Boolean hsetnx(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) Object field, @GloopParameter(allowNull=false) Object value, GloopExecutionContext context)
Set the value of a hash field, only if the field does not exist.- Parameters:
connectionName- The Martini Runtime Redis connection pool namekey- the keyfield- the field type: keyvalue- the value- Returns:
- Boolean integer-reply specifically:
1iffieldis a new field in the hash andvaluewas set.0iffieldalready exists in the hash and no operation was performed.
-
hsetnxAsync
@GloopParameter(name="redisFutureHsetnxOutput") public static Future<Boolean> hsetnxAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) Object field, @GloopParameter(allowNull=false) Object value, GloopExecutionContext context)
Asynchronously set the value of a hash field, only if the field does not exist.- Parameters:
connectionName- The Martini Runtime Redis connection pool namekey- the keyfield- the field type: keyvalue- the value- Returns:
- boolean integer-reply specifically:
1iffieldis a new field in the hash andvaluewas set.0iffieldalready exists in the hash and no operation was performed.
-
hstrlen
@GloopParameter(name="redisHstrlenOutput") public static Long hstrlen(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) Object field, GloopExecutionContext context)
Get the string length of the field value in a hash.- Parameters:
connectionName- The Martini Runtime Redis connection pool namekey- the keyfield- the field type: key- Returns:
- Long integer-reply the string length of the
fieldvalue, or0whenfieldis not present in the hash orkeydoes not exist at all.
-
hstrlenAsync
@GloopParameter(name="redisFutureHstrlenOutput") public static Future<Long> hstrlenAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) Object field, GloopExecutionContext context)
Asynchronously get the string length of the field value in a hash.- Parameters:
connectionName- The Martini Runtime Redis connection pool namekey- the keyfield- the field type: key- Returns:
- long integer-reply the string length of the
fieldvalue, or0whenfieldis not present in the hash orkeydoes not exist at all.
-
hvals
@GloopParameter(name="redisHvalsOutput") public static List<Object> hvals(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, GloopExecutionContext context)
Get all the values in a hash.- Parameters:
connectionName- The Martini Runtime Redis connection pool namekey- the key- Returns:
- List<V> array-reply list of values in the hash, or an empty list when
keydoes not exist.
-
hvals
@GloopParameter(name="redisHvalsOutput") public static Long hvals(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) ValueStreamingChannel<Object> channel, @GloopParameter(allowNull=false) Object key, GloopExecutionContext context)
Stream over all the values in a hash.- Parameters:
connectionName- The Martini Runtime Redis connection pool namechannel- streaming channel that receives a call for every valuekey- the key- Returns:
- Long count of the keys.
-
hvalsAsync
@GloopParameter(name="redisFutureHvalsOutput") public static Future<List<Object>> hvalsAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, GloopExecutionContext context)
Asynchronously get all the values in a hash.- Parameters:
connectionName- The Martini Runtime Redis connection pool namekey- the key- Returns:
- list<V> array-reply list of values in the hash, or an empty list when
keydoes not exist.
-
hvalsAsync
@GloopParameter(name="redisFutureHvalsOutput") public static Future<Long> hvalsAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) ValueStreamingChannel<Object> channel, @GloopParameter(allowNull=false) Object key, GloopExecutionContext context)
Asynchronously stream over all the values in a hash.- Parameters:
connectionName- The Martini Runtime Redis connection pool namechannel- streaming channel that receives a call for every valuekey- the key- Returns:
- long count of the keys.
-
-