Can hash tables support arrays? Or an official extension of the unique data directive?
I assume you meant the Hash data type right? (Not the global hash table of a database.)
The Dragonfly Hash data type behaves the same as the Redis Hash data type, which stores field/value pairs.
Field/value can only be strings.
In the mean time, Dragonfly supports the JSON data type and its corresponding commands, natively without loading additional modules.
Within the JSON data type, a field can be of any valid JSON type (i.e., string, object, arrays) so maybe that’s what you need instead.
Please see our docs:
- JSON overall: https://www.dragonflydb.io/docs/category/json
- JSON, append to array: https://www.dragonflydb.io/docs/command-reference/json/json.arrappend
Hope this answers your question!