Package glide.api.models.commands
Class RestoreOptions
- java.lang.Object
-
- glide.api.models.commands.RestoreOptions
-
public final class RestoreOptions extends java.lang.ObjectOptional arguments toGenericBaseCommands.restore(GlideString, long, byte[], RestoreOptions).- See Also:
- valkey.io
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRestoreOptions.RestoreOptionsBuilderCustom setter methods for replace and absttl
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringABSTTL_VALKEY_APIABSTTLsubcommand string to represent absolute timestamp (in milliseconds) for TTLstatic java.lang.StringFREQ_VALKEY_APIFREQsubcommand string to set Object Frequencystatic java.lang.StringIDLETIME_VALKEY_APIIDELTIMEsubcommand string to set Object Idletimestatic java.lang.StringREPLACE_VALKEY_APIREPLACEsubcommand string to replace existing key
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RestoreOptions.RestoreOptionsBuilderbuilder()java.lang.LonggetFrequency()It represents the frequency of objectjava.lang.LonggetIdletime()It represents the idletime of objectbooleanisHasAbsttl()When `true`, it representsABSTTLkeyword has been usedbooleanisHasReplace()When `true`, it representsREPLACEkeyword has been usedGlideString[]toArgs()Creates the argument to be used inGenericBaseCommands.restore(GlideString, long, byte[], RestoreOptions)
-
-
-
Field Detail
-
REPLACE_VALKEY_API
public static final java.lang.String REPLACE_VALKEY_API
REPLACEsubcommand string to replace existing key- See Also:
- Constant Field Values
-
ABSTTL_VALKEY_API
public static final java.lang.String ABSTTL_VALKEY_API
ABSTTLsubcommand string to represent absolute timestamp (in milliseconds) for TTL- See Also:
- Constant Field Values
-
IDLETIME_VALKEY_API
public static final java.lang.String IDLETIME_VALKEY_API
IDELTIMEsubcommand string to set Object Idletime- See Also:
- Constant Field Values
-
FREQ_VALKEY_API
public static final java.lang.String FREQ_VALKEY_API
FREQsubcommand string to set Object Frequency- See Also:
- Constant Field Values
-
-
Method Detail
-
toArgs
public GlideString[] toArgs()
Creates the argument to be used inGenericBaseCommands.restore(GlideString, long, byte[], RestoreOptions)- Returns:
- a
GlideStringarray that holds the subcommands and their arguments.
-
builder
public static RestoreOptions.RestoreOptionsBuilder builder()
-
isHasReplace
public boolean isHasReplace()
When `true`, it representsREPLACEkeyword has been used
-
isHasAbsttl
public boolean isHasAbsttl()
When `true`, it representsABSTTLkeyword has been used
-
getIdletime
public java.lang.Long getIdletime()
It represents the idletime of object
-
getFrequency
public java.lang.Long getFrequency()
It represents the frequency of object
-
-