Skip to content

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?

optional absttl: boolean

Set to true to specify that ttl argument of BaseClient.restore represents an absolute Unix timestamp (in milliseconds).


frequency?

optional frequency: number

Set the FREQ option with object frequency to the given key.


idletime?

optional idletime: number

Set the IDLETIME option with object idletime to the given key.


replace?

optional replace: boolean

Set to true to replace the key if it exists.