0.1.3 • Published 13 years ago

pluggable-store v0.1.3

Weekly downloads
2
License
-
Repository
github
Last release
13 years ago

#PluggableStore A unified interface to key-value stores.

It comes bundled with these adapters:

  • in-memory
  • HTML5 local storage (only browser)
  • file system (only node.js)

##Usage example You can always read/write with callbacks - some adapters work synchronous as well:

pluggableStore = require('pluggable-store');
var store = pluggableStore.server().memory();

store.write('key1', 'value1');
res = store.read('key1');

store.write('key1', function() {
  store.read('key1', function(err, res) {
    ...
  })
})
0.1.3

13 years ago

0.1.2

13 years ago

0.1.0

13 years ago

0.0.8

13 years ago

0.0.6

13 years ago

0.0.5

13 years ago

0.0.4

13 years ago

0.0.3

13 years ago

0.0.2

13 years ago

0.0.1

13 years ago