Hi All,
I have the following generic (i.e. non-binary) tree structure, and would like to know if Redis is suitable for my application:
1) a tree node may have 0 or 1 parent, 1 data field which can store arbitrary length binary data and 0 to N children.
2) In the order of importance, I would like the following operations to be as quickly as possible:
- get all leaf nodes of the tree
- given a node get its parent and level-N ancestors, until the root. N can be arbitrary, but typically not larger than 5.
- given a node, delete it and all its descendants
- given a node, get all its direct child
- add a child node to a specified node.
Will Redis capable of the above? Any suggestions please?
Thanks a lot in advance.
Xiangrong