public class RedisStringMethods
extends io.toro.martini.redis.RedisBaseMethods
Constructor and Description |
---|
RedisStringMethods(DataSourceManager dataSourceManager) |
Modifier and Type | Method and Description |
---|---|
static Long |
append(String connectionName,
Object key,
Object value,
GloopExecutionContext context)
Append a value to a key.
|
static Future<Long> |
appendAsync(String connectionName,
Object key,
Object value,
GloopExecutionContext context)
Asynchronously append a value to a key.
|
static Long |
bitcount(String connectionName,
Object key,
GloopExecutionContext context)
Count set bits in a string.
|
static Long |
bitcount(String connectionName,
Object key,
long start,
long end,
GloopExecutionContext context)
Count set bits in a string.
|
static Future<Long> |
bitcountAsync(String connectionName,
Object key,
GloopExecutionContext context)
Asynchronously count set bits in a string.
|
static Future<Long> |
bitcountAsync(String connectionName,
Object key,
long start,
long end,
GloopExecutionContext context)
Asynchronously count set bits in a string.
|
static List<Long> |
bitfield(String connectionName,
Object key,
BitFieldArgs bitFieldArgs,
GloopExecutionContext context)
Execute
BITFIELD with its subcommands. |
static Future<List<Long>> |
bitfieldAsync(String connectionName,
Object key,
BitFieldArgs bitFieldArgs,
GloopExecutionContext context)
Asynchronously execute
bITFIELD with its subcommands. |
static Long |
bitopAnd(String connectionName,
Object destination,
GloopExecutionContext context,
Object... keys)
Perform bitwise AND between strings.
|
static Future<Long> |
bitopAndAsync(String connectionName,
Object destination,
GloopExecutionContext context,
Object... keys)
Asynchronously perform bitwise aND between strings.
|
static Long |
bitopNot(String connectionName,
Object destination,
Object source,
GloopExecutionContext context)
Perform bitwise NOT between strings.
|
static Future<Long> |
bitopNotAsync(String connectionName,
Object destination,
Object source,
GloopExecutionContext context)
Asynchronously perform bitwise nOT between strings.
|
static Long |
bitopOr(String connectionName,
Object destination,
GloopExecutionContext context,
Object... keys)
Perform bitwise OR between strings.
|
static Future<Long> |
bitopOrAsync(String connectionName,
Object destination,
GloopExecutionContext context,
Object... keys)
Asynchronously perform bitwise oR between strings.
|
static Long |
bitopXor(String connectionName,
Object destination,
GloopExecutionContext context,
Object... keys)
Perform bitwise XOR between strings.
|
static Future<Long> |
bitopXorAsync(String connectionName,
Object destination,
GloopExecutionContext context,
Object... keys)
Asynchronously perform bitwise xOR between strings.
|
static Long |
bitpos(String connectionName,
Object key,
boolean state,
GloopExecutionContext context)
Find first bit set or clear in a string.
|
static Long |
bitpos(String connectionName,
Object key,
boolean state,
long start,
GloopExecutionContext context)
Find first bit set or clear in a string.
|
static Long |
bitpos(String connectionName,
Object key,
boolean state,
long start,
long end,
GloopExecutionContext context)
Find first bit set or clear in a string.
|
static Future<Long> |
bitposAsync(String connectionName,
Object key,
boolean state,
GloopExecutionContext context)
Asynchronously find first bit set or clear in a string.
|
static Future<Long> |
bitposAsync(String connectionName,
Object key,
boolean state,
long start,
GloopExecutionContext context)
Asynchronously find first bit set or clear in a string.
|
static Future<Long> |
bitposAsync(String connectionName,
Object key,
boolean state,
long start,
long end,
GloopExecutionContext context)
Asynchronously find first bit set or clear in a string.
|
static Long |
decr(String connectionName,
Object key,
GloopExecutionContext context)
Decrement the integer value of a key by one.
|
static Future<Long> |
decrAsync(String connectionName,
Object key,
GloopExecutionContext context)
Asynchronously decrement the integer value of a key by one.
|
static Long |
decrby(String connectionName,
Object key,
long amount,
GloopExecutionContext context)
Decrement the integer value of a key by the given number.
|
static Future<Long> |
decrbyAsync(String connectionName,
Object key,
long amount,
GloopExecutionContext context)
Asynchronously decrement the integer value of a key by the given number.
|
static Object |
get(String connectionName,
Object key,
GloopExecutionContext context)
Get the value of a key.
|
static Future<Object> |
getAsync(String connectionName,
Object key,
GloopExecutionContext context)
Asynchronously get the value of a key.
|
static Long |
getbit(String connectionName,
Object key,
long offset,
GloopExecutionContext context)
Returns the bit value at offset in the string value stored at key.
|
static Future<Long> |
getbitAsync(String connectionName,
Object key,
long offset,
GloopExecutionContext context)
Asynchronously returns the bit value at offset in the string value stored at key.
|
static Object |
getrange(String connectionName,
Object key,
long start,
long end,
GloopExecutionContext context)
Get a substring of the string stored at a key.
|
static Future<Object> |
getrangeAsync(String connectionName,
Object key,
long start,
long end,
GloopExecutionContext context)
Asynchronously get a substring of the string stored at a key.
|
static Object |
getset(String connectionName,
Object key,
Object value,
GloopExecutionContext context)
Set the string value of a key and return its old value.
|
static Future<Object> |
getsetAsync(String connectionName,
Object key,
Object value,
GloopExecutionContext context)
Asynchronously set the string value of a key and return its old value.
|
static Long |
incr(String connectionName,
Object key,
GloopExecutionContext context)
Increment the integer value of a key by one.
|
static Future<Long> |
incrAsync(String connectionName,
Object key,
GloopExecutionContext context)
Asynchronously increment the integer value of a key by one.
|
static Long |
incrby(String connectionName,
Object key,
long amount,
GloopExecutionContext context)
Increment the integer value of a key by the given amount.
|
static Future<Long> |
incrbyAsync(String connectionName,
Object key,
long amount,
GloopExecutionContext context)
Asynchronously increment the integer value of a key by the given amount.
|
static Double |
incrbyfloat(String connectionName,
Object key,
double amount,
GloopExecutionContext context)
Increment the float value of a key by the given amount.
|
static Future<Double> |
incrbyfloatAsync(String connectionName,
Object key,
double amount,
GloopExecutionContext context)
Asynchronously increment the float value of a key by the given amount.
|
static GloopModel |
mget(String connectionName,
GloopExecutionContext context,
Object... keys)
Get the values of all the given keys.
|
static Long |
mget(String connectionName,
KeyValueStreamingChannel<Object,Object> channel,
GloopExecutionContext context,
Object... keys)
Stream over the values of all the given keys.
|
static Future<List<KeyValue<Object,Object>>> |
mgetAsync(String connectionName,
GloopExecutionContext context,
Object... keys)
Asynchronously get the values of all the given keys.
|
static Future<Long> |
mgetAsync(String connectionName,
KeyValueStreamingChannel<Object,Object> channel,
GloopExecutionContext context,
Object... keys)
Asynchronously stream over the values of all the given keys.
|
static String |
mset(String connectionName,
GloopModel redisMap,
GloopExecutionContext context)
Set multiple keys to multiple values.
|
static Future<String> |
msetAsync(String connectionName,
GloopModel redisMap,
GloopExecutionContext context)
Asynchronously set multiple keys to multiple values.
|
static Boolean |
msetnx(String connectionName,
GloopModel redisMap,
GloopExecutionContext context)
Set multiple keys to multiple values, only if none of the keys exist.
|
static Future<Boolean> |
msetnxAsync(String connectionName,
GloopModel redisMap,
GloopExecutionContext context)
Asynchronously set multiple keys to multiple values, only if none of the keys exist.
|
static String |
psetex(String connectionName,
Object key,
long milliseconds,
Object value,
GloopExecutionContext context)
Set the value and expiration in milliseconds of a key.
|
static Future<String> |
psetexAsync(String connectionName,
Object key,
long milliseconds,
Object value,
GloopExecutionContext context)
Asynchronously set the value and expiration in milliseconds of a key.
|
static String |
set(String connectionName,
Object key,
Object value,
GloopExecutionContext context)
Set the string value of a key.
|
static String |
set(String connectionName,
Object key,
Object value,
GloopModel setArgs,
GloopExecutionContext context)
Set the string value of a key.
|
static Future<String> |
setAsync(String connectionName,
Object key,
Object value,
GloopExecutionContext context)
Asynchronously set the string value of a key.
|
static Future<String> |
setAsync(String connectionName,
Object key,
Object value,
GloopModel setArgs,
GloopExecutionContext context)
Asynchronously set the string value of a key.
|
static Long |
setbit(String connectionName,
Object key,
long offset,
int value,
GloopExecutionContext context)
Sets or clears the bit at offset in the string value stored at key.
|
static Future<Long> |
setbitAsync(String connectionName,
Object key,
long offset,
int value,
GloopExecutionContext context)
Asynchronously sets or clears the bit at offset in the string value stored at key.
|
static String |
setex(String connectionName,
Object key,
long seconds,
Object value,
GloopExecutionContext context)
Set the value and expiration of a key.
|
static Future<String> |
setexAsync(String connectionName,
Object key,
long seconds,
Object value,
GloopExecutionContext context)
Asynchronously set the value and expiration of a key.
|
static Boolean |
setnx(String connectionName,
Object key,
Object value,
GloopExecutionContext context)
Set the value of a key, only if the key does not exist.
|
static Future<Boolean> |
setnxAsync(String connectionName,
Object key,
Object value,
GloopExecutionContext context)
Asynchronously set the value of a key, only if the key does not exist.
|
static Long |
setrange(String connectionName,
Object key,
long offset,
Object value,
GloopExecutionContext context)
Overwrite part of a string at key starting at the specified offset.
|
static Future<Long> |
setrangeAsync(String connectionName,
Object key,
long offset,
Object value,
GloopExecutionContext context)
Asynchronously overwrite part of a string at key starting at the specified offset.
|
static Long |
strlen(String connectionName,
Object key,
GloopExecutionContext context)
Get the length of the value stored in a key.
|
static Future<Long> |
strlenAsync(String connectionName,
Object key,
GloopExecutionContext context)
Asynchronously get the length of the value stored in a key.
|
@Autowired RedisStringMethods(DataSourceManager dataSourceManager)
@GloopParameter(name="redisAppendOutput") public static Long append(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) Object value, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keyvalue
- the value@GloopParameter(name="redisFutureAppendOutput") public static Future<Long> appendAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) Object value, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keyvalue
- the value@GloopParameter(name="redisBitcountOutput") public static Long bitcount(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the key@GloopParameter(name="redisBitcountOutput") public static Long bitcount(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) long start, @GloopParameter(allowNull=false) long end, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keystart
- the startend
- the end@GloopParameter(name="redisFutureBitcountOutput") public static Future<Long> bitcountAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the key@GloopParameter(name="redisFutureBitcountOutput") public static Future<Long> bitcountAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) long start, @GloopParameter(allowNull=false) long end, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keystart
- the startend
- the end@GloopParameter(name="redisBitfieldOutput") public static List<Long> bitfield(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) BitFieldArgs bitFieldArgs, GloopExecutionContext context)
BITFIELD
with its subcommands.connectionName
- The Martini Runtime Redis connection pool namekey
- the keybitFieldArgs
- the args containing subcommands, must not be null.@GloopParameter(name="redisFutureBitfieldOutput") public static Future<List<Long>> bitfieldAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) BitFieldArgs bitFieldArgs, GloopExecutionContext context)
bITFIELD
with its subcommands.connectionName
- The Martini Runtime Redis connection pool namekey
- the keybitFieldArgs
- the args containing subcommands, must not be null.@GloopParameter(name="redisBitposOutput") public static Long bitpos(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) boolean state, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keystate
- the stateBITPOS key 0
will return 24, since up
to bit 23 all the bits are 1. Basically the function consider the right of the string as padded with
zeros if you look for clear bits and specify no range or the start argument
only.@GloopParameter(name="redisBitposOutput") public static Long bitpos(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) boolean state, @GloopParameter(allowNull=false) long start, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keystate
- the bit type: longstart
- the start type: longBITPOS key 0
will return 24, since up
to bit 23 all the bits are 1. Basically the function consider the right of the string as padded with
zeros if you look for clear bits and specify no range or the start argument
only.@GloopParameter(name="redisBitposOutput") public static Long bitpos(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) boolean state, @GloopParameter(allowNull=false) long start, @GloopParameter(allowNull=false) long end, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keystate
- the bit type: longstart
- the start type: longend
- the end type: longBITPOS key 0
will return 24, since up
to bit 23 all the bits are 1. Basically the function consider the right of the string as padded with
zeros if you look for clear bits and specify no range or the start argument
only. However this behavior changes if you are looking for clear bits and specify a
range with both start and end. If no clear bit is found in the
specified range, the function returns -1 as the user specified a clear range and there are no 0 bits in
that range.@GloopParameter(name="redisFutureBitposOutput") public static Future<Long> bitposAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) boolean state, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keystate
- the statebITPOS key 0
will return 24, since up
to bit 23 all the bits are 1. basically the function consider the right of the string as padded with
zeros if you look for clear bits and specify no range or the start argument
only.@GloopParameter(name="redisFutureBitposOutput") public static Future<Long> bitposAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) boolean state, @GloopParameter(allowNull=false) long start, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keystate
- the bit type: longstart
- the start type: longbITPOS key 0
will return 24, since up
to bit 23 all the bits are 1. basically the function consider the right of the string as padded with
zeros if you look for clear bits and specify no range or the start argument
only.@GloopParameter(name="redisFutureBitposOutput") public static Future<Long> bitposAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) boolean state, @GloopParameter(allowNull=false) long start, @GloopParameter(allowNull=false) long end, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keystate
- the bit type: longstart
- the start type: longend
- the end type: longbITPOS key 0
will return 24, since up
to bit 23 all the bits are 1. basically the function consider the right of the string as padded with
zeros if you look for clear bits and specify no range or the start argument
only. however this behavior changes if you are looking for clear bits and specify a
range with both start and end. if no clear bit is found in the
specified range, the function returns -1 as the user specified a clear range and there are no 0 bits in
that range.@GloopParameter(name="redisBitopAndOutput") public static Long bitopAnd(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object destination, GloopExecutionContext context, @GloopParameter(allowNull=false) Object... keys)
connectionName
- The Martini Runtime Redis connection pool namedestination
- result key of the operationkeys
- operation input key names@GloopParameter(name="redisFutureBitopAndOutput") public static Future<Long> bitopAndAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object destination, GloopExecutionContext context, @GloopParameter(allowNull=false) Object... keys)
connectionName
- The Martini Runtime Redis connection pool namedestination
- result key of the operationkeys
- operation input key names@GloopParameter(name="redisBitopNotOutput") public static Long bitopNot(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object destination, @GloopParameter(allowNull=false) Object source, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namedestination
- result key of the operationsource
- operation input key names@GloopParameter(name="redisFutureBitopNotOutput") public static Future<Long> bitopNotAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object destination, @GloopParameter(allowNull=false) Object source, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namedestination
- result key of the operationsource
- operation input key names@GloopParameter(name="redisBitopOrOutput") public static Long bitopOr(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object destination, GloopExecutionContext context, @GloopParameter(allowNull=false) Object... keys)
connectionName
- The Martini Runtime Redis connection pool namedestination
- result key of the operationkeys
- operation input key names@GloopParameter(name="redisFutureBitopOrOutput") public static Future<Long> bitopOrAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object destination, GloopExecutionContext context, @GloopParameter(allowNull=false) Object... keys)
connectionName
- The Martini Runtime Redis connection pool namedestination
- result key of the operationkeys
- operation input key names@GloopParameter(name="redisBitopXorOutput") public static Long bitopXor(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object destination, GloopExecutionContext context, @GloopParameter(allowNull=false) Object... keys)
connectionName
- The Martini Runtime Redis connection pool namedestination
- result key of the operationkeys
- operation input key names@GloopParameter(name="redisFutureBitopXorOutput") public static Future<Long> bitopXorAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object destination, GloopExecutionContext context, @GloopParameter(allowNull=false) Object... keys)
connectionName
- The Martini Runtime Redis connection pool namedestination
- result key of the operationkeys
- operation input key names@GloopParameter(name="redisDecrOutput") public static Long decr(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keykey
after the decrement@GloopParameter(name="redisFutureDecrOutput") public static Future<Long> decrAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keykey
after the decrement@GloopParameter(name="redisDecrbyOutput") public static Long decrby(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) long amount, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keyamount
- the decrement type: longkey
after the decrement@GloopParameter(name="redisFutureDecrbyOutput") public static Future<Long> decrbyAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) long amount, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keyamount
- the decrement type: longkey
after the decrement@GloopParameter(name="redisGetOutput") public static Object get(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keykey
, or null when key
does not exist.@GloopParameter(name="redisFutureGetOutput") public static Future<Object> getAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keykey
, or null when key
does not exist.@GloopParameter(name="redisGetbitOutput") public static Long getbit(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) long offset, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keyoffset
- the offset type: long@GloopParameter(name="redisFutureGetbitOutput") public static Future<Long> getbitAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) long offset, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keyoffset
- the offset type: long@GloopParameter(name="redisGetrangeOutput") public static Object getrange(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) long start, @GloopParameter(allowNull=false) long end, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keystart
- the start type: longend
- the end type: long@GloopParameter(name="redisFutureGetrangeOutput") public static Future<Object> getrangeAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) long start, @GloopParameter(allowNull=false) long end, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keystart
- the start type: longend
- the end type: long@GloopParameter(name="redisGetsetOutput") public static Object getset(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) Object value, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keyvalue
- the valuekey
, or null when key
did not
exist.@GloopParameter(name="redisFutureGetsetOutput") public static Future<Object> getsetAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) Object value, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keyvalue
- the valuekey
, or null when key
did not
exist.@GloopParameter(name="redisIncrOutput") public static Long incr(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keykey
after the increment@GloopParameter(name="redisFutureIncrOutput") public static Future<Long> incrAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keykey
after the increment@GloopParameter(name="redisIncrbyOutput") public static Long incrby(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) long amount, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keyamount
- the increment type: longkey
after the increment@GloopParameter(name="redisFutureIncrbyOutput") public static Future<Long> incrbyAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) long amount, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keyamount
- the increment type: longkey
after the increment@GloopParameter(name="redisIncrbyfloatOutput") public static Double incrbyfloat(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) double amount, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keyamount
- the increment type: doublekey
after the increment.@GloopParameter(name="redisFutureIncrbyfloatOutput") public static Future<Double> incrbyfloatAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) double amount, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keyamount
- the increment type: doublekey
after the increment.@GloopObjectParameter(value="output{\n redisKeyValues[]{\n key:object\n value:object\n }\n}") public static GloopModel mget(@GloopParameter(allowNull=false) String connectionName, GloopExecutionContext context, @GloopParameter(allowNull=false) Object... keys)
connectionName
- The Martini Runtime Redis connection pool namekeys
- the key@GloopParameter(name="redisMgetOutput") public static Long mget(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) KeyValueStreamingChannel<Object,Object> channel, GloopExecutionContext context, @GloopParameter(allowNull=false) Object... keys)
connectionName
- The Martini Runtime Redis connection pool namechannel
- the channelkeys
- the keys@GloopParameter(name="redisFutureMgetOutput") public static Future<List<KeyValue<Object,Object>>> mgetAsync(@GloopParameter(allowNull=false) String connectionName, GloopExecutionContext context, @GloopParameter(allowNull=false) Object... keys)
connectionName
- The Martini Runtime Redis connection pool namekeys
- the key@GloopParameter(name="redisFutureMgetOutput") public static Future<Long> mgetAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) KeyValueStreamingChannel<Object,Object> channel, GloopExecutionContext context, @GloopParameter(allowNull=false) Object... keys)
connectionName
- The Martini Runtime Redis connection pool namechannel
- the channelkeys
- the keys@GloopParameter(name="redisMsetOutput") public static String mset(@GloopParameter(allowNull=false) String connectionName, @GloopObjectParameter(value="redisMap[]{\n name:object\n value:object\n}\n") GloopModel redisMap, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool nameredisMap
- the key/value paisOK
since MSET
can't fail.@GloopParameter(name="redisFutureMsetOutput") public static Future<String> msetAsync(@GloopParameter(allowNull=false) String connectionName, @GloopObjectParameter(value="redisMap[]{\n name:object\n value:object\n}\n") GloopModel redisMap, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool nameredisMap
- the key/value pairsoK
since mSET
can't fail.@GloopParameter(name="redisMsetnxOutput") public static Boolean msetnx(@GloopParameter(allowNull=false) String connectionName, @GloopObjectParameter(value="redisMap[]{\n name:object\n value:object\n}\n") GloopModel redisMap, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool nameredisMap
- key/value pairs1
if the all the keys were set. 0
if no key
was set (at least one key already existed).@GloopParameter(name="redisFutureMsetnxOutput") public static Future<Boolean> msetnxAsync(@GloopParameter(allowNull=false) String connectionName, @GloopObjectParameter(value="redisMap[]{\n name:object\n value:object\n}\n") GloopModel redisMap, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool nameredisMap
- key/value pairs1
if the all the keys were set. 0
if no key
was set (at least one key already existed).@GloopParameter(name="redisSetOutput") public static String set(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) Object value, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keyvalue
- the valueOK
if SET
was executed correctly.@GloopParameter(name="redisSetOutput") public static String set(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) Object value, @GloopObjectParameter(value="setArgs{\n ex:long:Set the specified expire time, in seconds\n px:long:Set the specified expire time, in milliseconds\n nx:boolean:Only set the key if it does not already exist\n xx:boolean:Only set the key if it already exists\n}") GloopModel setArgs, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keyvalue
- the valuesetArgs
- the setArgsOK
if SET
was executed correctly.@GloopParameter(name="redisFutureSetOutput") public static Future<String> setAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) Object value, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keyvalue
- the valueoK
if sET
was executed correctly.@GloopParameter(name="redisFutureSetOutput") public static Future<String> setAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) Object value, @GloopObjectParameter(value="setArgs{\n ex:long:Set the specified expire time, in seconds\n px:long:Set the specified expire time, in milliseconds\n nx:boolean:Only set the key if it does not already exist\n xx:boolean:Only set the key if it already exists\n}") GloopModel setArgs, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keyvalue
- the valuesetArgs
- the setArgsoK
if sET
was executed correctly.@GloopParameter(name="redisSetbitOutput") public static Long setbit(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) long offset, @GloopParameter(allowNull=false) int value, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keyoffset
- the offset type: longvalue
- the value type: string@GloopParameter(name="redisFutureSetbitOutput") public static Future<Long> setbitAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) long offset, @GloopParameter(allowNull=false) int value, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keyoffset
- the offset type: longvalue
- the value type: string@GloopParameter(name="redisSetexOutput") public static String setex(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) long seconds, @GloopParameter(allowNull=false) Object value, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keyseconds
- the seconds type: longvalue
- the value@GloopParameter(name="redisFutureSetexOutput") public static Future<String> setexAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) long seconds, @GloopParameter(allowNull=false) Object value, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keyseconds
- the seconds type: longvalue
- the value@GloopParameter(name="redisPsetexOutput") public static String psetex(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) long milliseconds, @GloopParameter(allowNull=false) Object value, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keymilliseconds
- the milliseconds type: longvalue
- the value@GloopParameter(name="redisFuturePsetexOutput") public static Future<String> psetexAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) long milliseconds, @GloopParameter(allowNull=false) Object value, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keymilliseconds
- the milliseconds type: longvalue
- the value@GloopParameter(name="redisSetnxOutput") public static Boolean setnx(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) Object value, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keyvalue
- the value1
if the key was set 0
if the key was not
set@GloopParameter(name="redisFutureSetnxOutput") public static Future<Boolean> setnxAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) Object value, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keyvalue
- the value1
if the key was set 0
if the key was not
set@GloopParameter(name="redisSetrangeOutput") public static Long setrange(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) long offset, @GloopParameter(allowNull=false) Object value, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keyoffset
- the offset type: longvalue
- the value@GloopParameter(name="redisFutureSetrangeOutput") public static Future<Long> setrangeAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) long offset, @GloopParameter(allowNull=false) Object value, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keyoffset
- the offset type: longvalue
- the value@GloopParameter(name="redisStrlenOutput") public static Long strlen(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keykey
, or 0
when key
does not exist.@GloopParameter(name="redisFutureStrlenOutput") public static Future<Long> strlenAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the keykey
, or 0
when key
does not exist.Copyright © 2021. All rights reserved.