a very simple tree based data structure based on redis and speaks redis
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md added parents command Dec 10, 2018
go.mod initial push Dec 9, 2018
go.sum
init.go
main.go
node.go initial push Dec 9, 2018
response.go
validator.go initial push Dec 9, 2018
vars.go initial push Dec 9, 2018

README.md

uTree

a very simple tree based data structure based on redis and speaks redis

Available Commands

  • ping, returns a PONG.
  • gen, generates a new unique id.
  • append <parent>, appends a new node to the spefified parent and returns the newly added id.
  • flatten <id>, returns all nested children for the specified id.
  • tree <id>, return json string represents a nested tree for the specified id.
  • mv <id> <dst>, moves the specified id to another parent dst.
  • rm <id>, removes the specified id from the tree.
  • parents <id>, returns a flate list of all parents.

SDKs

you can connect it with any redis client

Credits

copyright (c) 2018