public static class StringCommands.SetArgument.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
StringCommands.SetArgument |
build() |
static StringCommands.SetArgument.Builder |
create() |
StringCommands.SetArgument.Builder |
ex(long lifetime)
设置键的过期时间(单位:秒)
|
StringCommands.SetArgument.Builder |
exAt(Date date)
设置键的过期时间
|
StringCommands.SetArgument.Builder |
exAt(long seconds)
设置键的过期时间戳
|
StringCommands.SetArgument.Builder |
keepTtl() |
StringCommands.SetArgument.Builder |
nxXX(NxXx nxXx)
设置键的条件,NX:只在键不存在时,才对键进行设置操作;XX:只在键已经存在时,才对键进行设置
|
StringCommands.SetArgument.Builder |
px(long lifetime)
设置键的过期时间(单位:毫秒)
|
StringCommands.SetArgument.Builder |
pxAt(Date date)
设置键的过期时间
|
StringCommands.SetArgument.Builder |
pxAt(long milliseconds)
设置键的过期时间戳
|
public static StringCommands.SetArgument.Builder create()
public StringCommands.SetArgument.Builder ex(long lifetime)
lifetime
- 键的过期时间public StringCommands.SetArgument.Builder exAt(long seconds)
seconds
- 键的过期时间戳,秒时间戳public StringCommands.SetArgument.Builder exAt(Date date)
date
- 键的过期时间public StringCommands.SetArgument.Builder px(long lifetime)
lifetime
- 键的过期时间public StringCommands.SetArgument.Builder pxAt(long milliseconds)
milliseconds
- 键的过期时间戳,毫秒秒时间戳public StringCommands.SetArgument.Builder pxAt(Date date)
date
- 键的过期时间public StringCommands.SetArgument.Builder nxXX(NxXx nxXx)
nxXx
- 设置键的条件public StringCommands.SetArgument.Builder keepTtl()
public StringCommands.SetArgument build()
Copyright © 2023 buession.com Inc.. All rights reserved.