Package io.lettuce.core
Class SetArgs.Builder
- java.lang.Object
-
- io.lettuce.core.SetArgs.Builder
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SetArgs
ex(long timeout)
Creates newSetArgs
and enable EX.static SetArgs
ex(Duration timeout)
Creates newSetArgs
and enable EX.static SetArgs
exAt(long timestamp)
Creates newSetArgs
and enable EXAT.static SetArgs
exAt(Instant timestamp)
Creates newSetArgs
and enable EXAT.static SetArgs
exAt(Date timestamp)
Creates newSetArgs
and enable EXAT.static SetArgs
keepttl()
Creates newSetArgs
and enable KEEPTTL.static SetArgs
nx()
Creates newSetArgs
and enable NX.static SetArgs
px(long timeout)
Creates newSetArgs
and enable PX.static SetArgs
px(Duration timeout)
Creates newSetArgs
and enable PX.static SetArgs
pxAt(long timestamp)
Creates newSetArgs
and enable PXAT.static SetArgs
pxAt(Instant timestamp)
Creates newSetArgs
and enable PXAT.static SetArgs
pxAt(Date timestamp)
Creates newSetArgs
and enable PXAT.static SetArgs
xx()
Creates newSetArgs
and enable XX.
-
-
-
Method Detail
-
ex
public static SetArgs ex(long timeout)
Creates newSetArgs
and enable EX.- Parameters:
timeout
- expire time in seconds.- Returns:
- new
SetArgs
with EX enabled. - See Also:
SetArgs.ex(long)
-
ex
public static SetArgs ex(Duration timeout)
Creates newSetArgs
and enable EX.- Parameters:
timeout
- expire time as duration.- Returns:
- new
SetArgs
with EX enabled. - Since:
- 6.1
- See Also:
SetArgs.ex(long)
-
exAt
public static SetArgs exAt(long timestamp)
Creates newSetArgs
and enable EXAT.- Parameters:
timestamp
- the timestamp type: posix time in seconds.- Returns:
- new
SetArgs
with EXAT enabled. - See Also:
SetArgs.exAt(long)
-
exAt
public static SetArgs exAt(Date timestamp)
Creates newSetArgs
and enable EXAT.- Parameters:
timestamp
- the timestamp type: posix time in seconds.- Returns:
- new
SetArgs
with EXAT enabled. - Since:
- 6.1
- See Also:
SetArgs.exAt(Date)
-
exAt
public static SetArgs exAt(Instant timestamp)
Creates newSetArgs
and enable EXAT.- Parameters:
timestamp
- the timestamp type: posix time in seconds.- Returns:
- new
SetArgs
with EXAT enabled. - Since:
- 6.1
- See Also:
SetArgs.exAt(Instant)
-
px
public static SetArgs px(long timeout)
Creates newSetArgs
and enable PX.- Parameters:
timeout
- expire time in milliseconds.- Returns:
- new
SetArgs
with PX enabled. - See Also:
SetArgs.px(long)
-
px
public static SetArgs px(Duration timeout)
Creates newSetArgs
and enable PX.- Parameters:
timeout
- expire time in milliseconds.- Returns:
- new
SetArgs
with PX enabled. - Since:
- 6.1
- See Also:
SetArgs.px(long)
-
pxAt
public static SetArgs pxAt(long timestamp)
Creates newSetArgs
and enable PXAT.- Parameters:
timestamp
- the timestamp type: posix time.- Returns:
- new
SetArgs
with PXAT enabled. - See Also:
SetArgs.pxAt(long)
-
pxAt
public static SetArgs pxAt(Date timestamp)
Creates newSetArgs
and enable PXAT.- Parameters:
timestamp
- the timestamp type: posix time.- Returns:
- new
SetArgs
with PXAT enabled. - Since:
- 6.1
- See Also:
SetArgs.pxAt(Date)
-
pxAt
public static SetArgs pxAt(Instant timestamp)
Creates newSetArgs
and enable PXAT.- Parameters:
timestamp
- the timestamp type: posix time.- Returns:
- new
SetArgs
with PXAT enabled. - Since:
- 6.1
- See Also:
SetArgs.pxAt(Instant)
-
nx
public static SetArgs nx()
Creates newSetArgs
and enable NX.- Returns:
- new
SetArgs
with NX enabled. - See Also:
SetArgs.nx()
-
xx
public static SetArgs xx()
Creates newSetArgs
and enable XX.- Returns:
- new
SetArgs
with XX enabled. - See Also:
SetArgs.xx()
-
keepttl
public static SetArgs keepttl()
Creates newSetArgs
and enable KEEPTTL.- Returns:
- new
SetArgs
with KEEPTTL enabled. - Since:
- 5.3
- See Also:
SetArgs.keepttl()
-
-