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