public class RestoreArgs extends Object
RestoreArgs.Builder and call the methods: ttl(…) .
RestoreArgs is a mutable object and instances should be used only once to avoid shared mutable state.
| Modifier and Type | Class and Description |
|---|---|
static class |
RestoreArgs.Builder
Builder entry points for
XAddArgs. |
| Constructor and Description |
|---|
RestoreArgs() |
| Modifier and Type | Method and Description |
|---|---|
RestoreArgs |
replace()
Replaces existing keys if the target key already exists.
|
RestoreArgs |
replace(boolean replace)
Replaces existing keys if the target key already exists.
|
RestoreArgs |
ttl(Duration ttl)
Set TTL in
milliseconds after restoring the key. |
RestoreArgs |
ttl(long milliseconds)
Set TTL in
milliseconds after restoring the key. |
public RestoreArgs ttl(long milliseconds)
milliseconds after restoring the key.milliseconds - time to live.this.public RestoreArgs ttl(Duration ttl)
milliseconds after restoring the key.ttl - time to live.this.public RestoreArgs replace()
this.public RestoreArgs replace(boolean replace)
replace - true to enable replacing of existing keys.this.Copyright © 2021 lettuce.io. All rights reserved.