kvtdb
Key-Value Tree Database
Last updated 5 years ago by chrisoei .
Original npm · Tarball · package.json
$ cnpm install kvtdb 
SYNC missed versions from official npm registry.
# Set a value:
curl -XPUT \
  -H 'Content-Type: application/json' \
  -d\"23.239.7.23\" \
  http://localhost:63446/db/set/dns/blog.oei.io

# Get a value:
curl http://localhost:63446/db/get/dns/blog.oei.io

# Everything is stored as a single JSON tree, so we can
# also get the value of the parent node:
curl http://localhost:63446/db/get/dns

# We can also delete a node
curl -XDELETE http://localhost:63446/db/del/dns/blog.oei.io

# We can search for the key that contains a value
curl http://localhost:63446/db/search/dns/*/23.239.7.23

# To get a list of keys for a node
curl http://localhost:63446/db/keys/dns

# To save a snapshot of the database
curl -XPOST http://localhost:63446/db/snapshot

# We can also save UTF-8 data directly into the database:
curl -XPUT \
  -H'Content-Type: text/plain' \
  --data-binary @ember.debug.js \
  http://localhost:63446/db/set/ember.js

# We can also retrieve UTF-8 data and force the Content-Type,
# Cache-Control, and Expires headers
curl -v "http://localhost:63446/db/get/ember.js?Content-Type=application/javascript"

Current Tags

  • 1.0.0                                ...           1.0.0 (5 years ago)
  • 1.1.0                                ...           latest (5 years ago)

7 Versions

  • 1.1.0                                ...           5 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
  • 0.0.5                                ...           6 years ago
  • 0.0.4                                ...           6 years ago
  • 0.0.2                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 2
Last Month 7
Dependencies (5)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |