{"_id":"storeman","_rev":"10-0d2a708425a5b01960ce497803523981","name":"storeman","description":"Simple storage API unifier with prefix support","dist-tags":{"latest":"0.1.2"},"versions":{"0.0.1":{"name":"storeman","version":"0.0.1","description":"Simple storage API unifier with prefix support","main":"lib/storeman.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/ktmud/storeman"},"keywords":["storage","cache","redis","levelup","jsonize"],"dependencies":{"debug":"0.7.x"},"author":{"name":"ktmud","email":"kissmud@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/ktmud/storeman/issues"},"homepage":"https://github.com/ktmud/storeman","_id":"storeman@0.0.1","dist":{"shasum":"c53e29232e1dff521787b2fef7caafe05e513a1a","tarball":"https://registry.npmjs.org/storeman/-/storeman-0.0.1.tgz","integrity":"sha512-ofrg87XyjpgzhZkXdwlg8MGQ0luzgCtE/5VtfDwccj8cxr2YYKaSNcybq9l46N5b/V6YdBObeKdi0+MHAF+s0Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCrlaWcXrzcj4y0XFU9Uvd7UK9tBrwzcvjknuY56M4axwIgHOr46iGbOiz9eSgr8793CL4nblKGYju2Ic7IBGK03Rk="}]},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"ktmud","email":"jyyjcc@gmail.com"},"maintainers":[{"name":"ktmud","email":"jyyjcc@gmail.com"}]},"0.0.3":{"name":"storeman","version":"0.0.3","description":"Simple storage API unifier with prefix support","main":"lib/storeman.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/ktmud/storeman"},"keywords":["storage","cache","redis","levelup","jsonize"],"dependencies":{"after":"0.8.x","debug":"0.7.x"},"author":{"name":"ktmud","email":"kissmud@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/ktmud/storeman/issues"},"homepage":"https://github.com/ktmud/storeman","_id":"storeman@0.0.3","dist":{"shasum":"8bf928dd6d39ea3573241740982ea1be2c0a24e9","tarball":"https://registry.npmjs.org/storeman/-/storeman-0.0.3.tgz","integrity":"sha512-8Jt5x2PEwc03uE6TUbgki05c+T4JINlUhedihQNIBJan9z7pOASHM8V8BtUVdEIvQATsxejefAT1/eFJtj9yeQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG49ghZIHD1jjt2Jw8n+D6zUykJ2D3tzWG7DGx+j4W4WAiBCnjrXfXI6Km05zjGKV63QIZ/sRtzfakovj8d9ZTv0Mg=="}]},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"ktmud","email":"jyyjcc@gmail.com"},"maintainers":[{"name":"ktmud","email":"jyyjcc@gmail.com"}]},"0.1.1":{"name":"storeman","version":"0.1.1","description":"Simple storage API unifier with prefix support","main":"lib/storeman.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/ktmud/storeman"},"keywords":["storage","cache","redis","levelup","jsonize"],"dependencies":{"after":"0.8.x","debug":"0.7.x"},"devDependencies":{"lru-cache":"*","istanbul":"*","mocha":"*"},"author":{"name":"ktmud","email":"kissmud@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/ktmud/storeman/issues"},"config":{"travis-cov":{"threshold":70},"blanket":{"pattern":"storeman/lib/"}},"homepage":"https://github.com/ktmud/storeman","_id":"storeman@0.1.1","dist":{"shasum":"ffc104d1f2c3506aa8f41e6f031fd4a5479f3d92","tarball":"https://registry.npmjs.org/storeman/-/storeman-0.1.1.tgz","integrity":"sha512-XoHYvKKIMUvbRSaLPBP+A5Yf5JkyFOmR3iiOkAOAPkV/QUB58pz+KoTg7Fx4oRVKJsqGHCpLNnu8aL513vM0Rg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICYoKFf3WYF84qgpheeBilm54pK3bBgtJATVEJ9xUESyAiEAzlth9XsS1b6vz6WmtYzWZqmMtsPZf8oBn/pSuKe0e28="}]},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"ktmud","email":"jyyjcc@gmail.com"},"maintainers":[{"name":"ktmud","email":"jyyjcc@gmail.com"}]},"0.1.2":{"name":"storeman","version":"0.1.2","description":"Simple storage API unifier with prefix support","main":"lib/storeman.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/ktmud/storeman"},"keywords":["storage","cache","redis","levelup","jsonize"],"dependencies":{"after":"0.8.x","debug":"0.7.x"},"devDependencies":{"lru-cache":"*","istanbul":"*","mocha":"*"},"author":{"name":"ktmud","email":"kissmud@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/ktmud/storeman/issues"},"config":{"travis-cov":{"threshold":70},"blanket":{"pattern":"storeman/lib/"}},"homepage":"https://github.com/ktmud/storeman","_id":"storeman@0.1.2","_shasum":"2e6bbfd9ce591b6ebc09e05376eacd16b592697c","_from":".","_npmVersion":"1.4.7","_npmUser":{"name":"ktmud","email":"jyyjcc@gmail.com"},"maintainers":[{"name":"ktmud","email":"jyyjcc@gmail.com"}],"dist":{"shasum":"2e6bbfd9ce591b6ebc09e05376eacd16b592697c","tarball":"https://registry.npmjs.org/storeman/-/storeman-0.1.2.tgz","integrity":"sha512-oAhTJrLVrnjDv4mlIZ+ZsCpFdT4GH1wyuMgwUg45nklzPPs38e8aBL7zBgzXsWCm8otg34ltCBn9OuULjNACbg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDD/3k4xnboJ+RLEmwXZAwpJ5DsPArZ58/SoMlbEh3INgIhAL4kmspKjWf0N3/apBj+Q6Fvm8XgPlWF4uxhk5LdmHZz"}]}}},"readme":"# Storeman\n\nA man to help you unify API for mischellaneous storage engines.\n\nProvide a handful set of of useful methods: `get`, `set` *(with ttl)*, `del`, `mget`. \n\nWith built-in [Redis](https://github.com/mranney/node_redis/) and\n[LevelUP](https://github.com/rvagg/node-levelup) support.\n\n## Usage\n\n```javascript\nvar Storeman = require('storeman')\nvar Redis = require('redis')\nvar levelup = require('levelup')\n\n// cache with Redis\nvar cache = new Storeman({\n    prefix: 'cache:',\n    client: Redis.createClient(),\n    encode: function(data){\n        return JSON.stringify(data)\n    },\n    decode: function(data) {\n        return JSON.parse(data)\n    }\n})\n\n// persistent storage with leveldb\nvar store = new Storeman({\n    prefix: 'store:',\n    client: levelup('./var/leveldb')\n})\n```\n\n## API\n\nThe main purpose of this module is to provide a higher level of consistent API over\ndifferent storage clients. That means:\n\n  - consistent method name\n  - consistent function signature\n  - consistent return results\n\nAll methods include:\n\n### store.get(key, callback)\n\nWill `callback(null, undefined)` when no data is found,\nnot return a `null` (as redis does) or emit an error (as leveldb does).\nThis behavior is for in case you want really set data as `null`.\n\n### store.set(key, value, [ttl], callback)\n\nThe client is responsible for handling `ttl`, Storeman will not do this for you.\n\n### store.del(key, callback)\n\nSupports batch delete by passing an Array as `key`.\n\n\n## License\n\nthe MIT license.\n","maintainers":[{"name":"ktmud","email":"jyyjcc@gmail.com"}],"time":{"modified":"2022-06-27T00:34:14.271Z","created":"2014-02-28T06:21:58.843Z","0.0.1":"2014-02-28T06:21:58.843Z","0.0.3":"2014-03-02T14:34:47.605Z","0.1.1":"2014-04-28T03:19:12.573Z","0.1.2":"2014-05-02T07:05:10.005Z"},"homepage":"https://github.com/ktmud/storeman","keywords":["storage","cache","redis","levelup","jsonize"],"repository":{"type":"git","url":"git://github.com/ktmud/storeman"},"author":{"name":"ktmud","email":"kissmud@gmail.com"},"bugs":{"url":"https://github.com/ktmud/storeman/issues"},"license":"MIT","readmeFilename":"README.md"}