public class SpringRedisSequenceServiceImpl extends Object implements ISequenceService
RedisTemplate 实现的序列服务| Constructor and Description |
|---|
SpringRedisSequenceServiceImpl(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory) |
SpringRedisSequenceServiceImpl(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory,
Long initialValue) |
| Modifier and Type | Method and Description |
|---|---|
long |
currVal(String seqName) |
long |
nextVal(String seqName) |
long |
setVal(String seqName,
long newVal) |
public SpringRedisSequenceServiceImpl(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory,
@Nullable
Long initialValue)
public SpringRedisSequenceServiceImpl(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory)
public long nextVal(@NonNull
String seqName)
nextVal in interface ISequenceServicepublic long currVal(@NonNull
String seqName)
currVal in interface ISequenceServicepublic long setVal(@NonNull
String seqName,
long newVal)
setVal in interface ISequenceServiceCopyright © 2021–2022 EasyJ????. All rights reserved.