Home / node / Commands / interfaces / RestoreOptions @valkey/valkey-glide
@valkey/valkey-glide / Commands / RestoreOptions
Interface: RestoreOptions
Optional arguments for RESTORE command.
See
valkey.io for details.
Remarks
IDLETIME and FREQ modifiers cannot be set at the same time.
Properties
absttl?
optionalabsttl:boolean
Set to true to specify that ttl argument of BaseClient.restore represents
an absolute Unix timestamp (in milliseconds).
frequency?
optionalfrequency:number
Set the FREQ option with object frequency to the given key.
idletime?
optionalidletime:number
Set the IDLETIME option with object idletime to the given key.
replace?
optionalreplace:boolean
Set to true to replace the key if it exists.