Type Alias: ValueType
ts
type ValueType =
| null
| string
| number
| boolean
| object
| DictionaryType
| ValueType[];
ValueType
is a type that represents the possible values that can be stored in a key-value pair.
It can be null, string, number, boolean, object, DictionaryType, or an array of ValueType.
Example
ts
await cache.set("createdAt", "2023-04-16");
await cache.set("levels", [1, 2, 3]);
await cache.set("family, [{ name: "John" }, { name: "Jane" }]);