abstract-storage
v0.1.0
Published
Collection of objects to better deal with storage-related matters...
Downloads
2
Readme
abstract-storage
Collection of objects to easily deal with storage-related matters... before I get to a better description of it! :)
Today, it offers the following objects:
- Repository
- LevelDBStore
- RedisStore
API
Store#open
store.open(options, function(error, client) { ...
Store#close
store.close(function(error) { ...
Store#read
store.read(key, function(error, value) { ...
Store#write
store.write(key, value, function(error) { ...
Repository#open
repository.open(options, function(error) { ...
Repository#close
repository.close(function(error) { ...
Repository#read
repository.read(id, function(error, value) { ...
Repository#write
repository.write(id, object, function(error) { ...