Frends.Redis.SetValue / 2.1.0
Summary
Writes a value as a string, list or hash, optionally with an expiry after which Redis drops it on its own.
Typical use — caching, and coordination state between Processes — the expiry is what stops abandoned state accumulating
Data to use in Redis
| Name | Type | Default | Example | Description |
|---|---|---|---|---|
| ValueType | ValueType |
String |
ValueType.String |
Type of the value we want to save in Redis Possible values:
|
| Key | String |
– | Foo |
Key to set |
| StringValue | String |
– | Bar |
String value to set |
| ListValue | List<String> |
– | ["Foo", "Bar"] |
List value to set |
| HashValue | Dictionary<String, String> |
– | { { "Foo", "Bar" }, { "Moo", "Baz" } } |
Dictionary value to set |
| CollectionOperation | Operation |
Append |
Operation.Append |
Operation that will be executed in case of collection-like type. String values are always overwritten. Possible values:
|
| ExpiryInSeconds | Nullable<Int32> |
– | 3600 |
Time to live in seconds. Leave empty for infinite. |