public class RedisTemplateUtils extends Object
| 构造器和说明 |
|---|
RedisTemplateUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> T |
executeScript(org.springframework.data.redis.core.RedisTemplate<?,?> redisTemplate,
org.springframework.data.redis.core.script.RedisScript<T> script,
org.springframework.data.redis.connection.ReturnType returnType,
int numKeys,
byte[][] keysAndArgs)
Execute lua script for redis
|
public static <T> T executeScript(org.springframework.data.redis.core.RedisTemplate<?,?> redisTemplate,
org.springframework.data.redis.core.script.RedisScript<T> script,
org.springframework.data.redis.connection.ReturnType returnType,
int numKeys,
byte[][] keysAndArgs)
T - the return typeredisTemplate - the redis templatescript - the lua scriptreturnType - the return typenumKeys - the number of keyskeysAndArgs - the keys and argumentsCopyright © 2023. All rights reserved.