Package Exports
- node-document-storage
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (node-document-storage) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
NODE-DOCUMENT-STORAGE 
Storage adapter interface for node-document ODM for Node.js.
About
Unified interface for write/read data to/from differen kinds of storages/databases.
Adapters
- Global Memory
- FS FileSystem
- NStore Memory/File/Process
- Memcached
- Redis
- KyotoCabinet
- MongoDB
- CouchDB
- Riak
- ElasticSearch
- AmazonS3
API
#set
(keys, values, [callback(err, res)])storage.set(['post/1', 'post/2'], [{foo: 1}, {foo: 2}], function(err, res) { // console.log(arguments); });
(keys_values, [callback(err, res)])storage.set({'post/1': {foo: 1}, 'post/2': {foo: 1}}, function(err, res) { // console.log(arguments); });
#get
(keys, [callback(err, res)])storage.get(['post/1', 'post/2'], function(err, res) { // console.log(arguments); });
#del
(keys, [callback(err, res)])storage.del(['post/1', 'post/2'], function(err, res) { // console.log(arguments); });
#exists
(keys, [callback(err, res)])storage.exists(['post/1', 'post/2'], function(err, res) { // console.log(arguments); });
Installation
$ npm install node-document-storageTest
Local tests:
$ make testLicense
Released under the MIT license.
Copyright (c) Jonas Grimfelt