{"_id":"eventvat","_rev":"26-0e11687acb7999515292ee6441322d38","name":"eventvat","description":"Evented, in-process key/value store for Node.js and the browser","dist-tags":{"latest":"0.2.1"},"versions":{"0.1.1":{"name":"eventvat","version":"0.1.1","description":"Evented, in-process key/value store for Node.js and the browser","main":"./lib/index.js","directories":{"lib":"./lib","example":"./example"},"repository":{"type":"git","url":"git://github.com/hij1nx/EventVat.git"},"keywords":["storage","database","redis"],"author":{"name":"hij1nx","email":"hij1nx@me.com","url":"http://www.nodejitsu.com"},"maintainers":[{"name":"hij1nx","email":"hij1nx@me.com"}],"dependencies":{"eventemitter2":">=0.4.x"},"license":"MIT","engine":{"node":">=0.4"},"_npmJsonOpts":{"file":"/Users/paolo/.npm/eventvat/0.1.1/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"eventvat@0.1.1","devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.27","_nodeVersion":"v0.4.10","_defaultsLoaded":true,"dist":{"shasum":"927a5690c50622863f0584801f092afb3ba24bce","tarball":"https://registry.npmjs.org/eventvat/-/eventvat-0.1.1.tgz","integrity":"sha512-hzkBkwEYWR9hOpBuEM+tQPTcH75PdMsBmg4kx18Pb6cAoqu/arHsYsOtI9zwPe+Y8do4QsKuYdaGi0FUYIIZiQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHER/uciQhHi4bemm0jJ6Mm9t7lIkMRv98QfmDLVExIfAiEAgmPDT0GNz9RLT1p4XKooR/vABVluweR5N1pMyFMx8w4="}]}},"0.1.2":{"name":"eventvat","version":"0.1.2","description":"Evented, in-process key/value store for Node.js and the browser","main":"./lib/index.js","directories":{"lib":"./lib","example":"./example"},"repository":{"type":"git","url":"git://github.com/hij1nx/EventVat.git"},"keywords":["storage","database","redis"],"author":{"name":"hij1nx","email":"hij1nx@me.com","url":"http://www.nodejitsu.com"},"maintainers":[{"name":"hij1nx","email":"hij1nx@me.com"}],"dependencies":{"eventemitter2":">=0.4.x"},"license":"MIT","engine":{"node":">=0.4"},"_npmUser":{"name":"hij1nx","email":"hij1nx@me.com"},"_id":"eventvat@0.1.2","devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.0-3","_nodeVersion":"v0.6.9","_defaultsLoaded":true,"dist":{"shasum":"ae4c72a14b22107da1a928f76700986b57b3492c","tarball":"https://registry.npmjs.org/eventvat/-/eventvat-0.1.2.tgz","integrity":"sha512-hbR46MOPCcLc8af4vb5NuEuUqY4Q/fMDQsDFj3SiYFP8fznNxFKOjHw1cJ2rgYqeiBsEJDoWiKXBef2Th/BBFg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwkC6UwUeV3eNJHswB6aPB/Zua+R8TVYNRbOcVTILb1wIhAPlAjolOIxDyD+6WU4ITLYuomgckOgi92E1rDZB7wnnz"}]},"readme":"![Alt text](https://github.com/hij1nx/EventVat/raw/master/logo.png)\n\n# Synopsis\n\n### EventVat is an in-process key/value store with an API that emulates the Redis API. It's also event based, which means that when changes to the data are made, events will be raised for which a callback can be provided. It supports 5 data types, Strings, Numbers, Booleans, Arrays and Hashes.\n\n# Motivation\n\n - For processes who do not share data, it reduces unnecessary trips across the process boundary.\n - Portability, works in the browser and on the server.\n - Actions against the data are event based.\n - Write to any storage end-point (such as local browser storage, a filesystem or couchdb).\n\n# Usage\n\nInstantiate EventVat with existing data or without. Methods and events are hung off of the new instance. Each method that can act on the instance will raise an event by the same name. \n\n## events\nEventVat uses an implementation of <a href=\"https://github.com/hij1nx/EventEmitter2\">EventEmitter</a>. Listeners can attached to an EventVat object. An EventVat object can emit and event and a listener will respond. An event has three characteristics, the event name, a listener and an associated data key or wildcard.\n\n### Key based events\n\n```javascript\n  var demo = EventVat();\n\n  demo.on('get foo', function(key, value) {\n    console.log('getting: ', key, value);\n  });\n\n  demo.get('foo');\n```\n\n### Wildcard events\n\n```javascript\n  var demo = EventVat();\n\n  demo.on('get foo', function(key, value) {\n    console.log('getting: ', key, value);\n  });\n\n  demo.get('foo');\n```\n\n(The MIT License)\n\nCopyright (c) 2010 hij1nx <http://www.twitter.com/hij1nx>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"},"0.1.3":{"name":"eventvat","version":"0.1.3","description":"Evented, in-process key/value store for Node.js and the browser","main":"./lib/index.js","directories":{"lib":"./lib","example":"./example"},"repository":{"type":"git","url":"git://github.com/hij1nx/EventVat.git"},"keywords":["storage","database","redis"],"author":{"name":"hij1nx","email":"hij1nx@me.com","url":"http://www.nodejitsu.com"},"maintainers":[{"name":"hij1nx","email":"hij1nx@me.com"}],"dependencies":{"eventemitter2":">=0.4.x"},"devDependencies":{"nodeunit":"*"},"scripts":{"test":"nodeunit test/*-test.js"},"license":"MIT","engine":{"node":">=0.4"},"_npmUser":{"name":"hij1nx","email":"hij1nx@me.com"},"_id":"eventvat@0.1.3","optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.0-3","_nodeVersion":"v0.6.9","_defaultsLoaded":true,"dist":{"shasum":"08008eb602d5174b32f68d17fd9b1c331afe4be0","tarball":"https://registry.npmjs.org/eventvat/-/eventvat-0.1.3.tgz","integrity":"sha512-j05qF6dCOpZhfynzaLAtSIKYwwD3kWgcBnHzx548EClbnidaqtrOoEB0U6yGjjPrAQUdqS67kmDw3e9wVeepuw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH0D8F1nN50JqTQoWeCsRdSaOKzYXwiIionda+qmeSudAiAWw/UQKpZ6/ktNiFANd3VncIfmJDHVKarhVW2DF9K3Hw=="}]},"readme":"![Alt text](https://github.com/hij1nx/EventVat/raw/master/logo.png)\n\n# Synopsis\n\n### EventVat is an evented in-process key/value store with an API like that of Redis. It's event based, which means that when a method is called that affects the data, corresponding events will be raised. It supports 5 data types, Strings, Numbers, Booleans, Arrays and Hashes.\n\n# Motivation\n\n - A datastore for small, volitile working sets\n - For processes who do not share data, it reduces unnecessary trips across the process boundary.\n - Portability, works in the browser and on the server.\n - Write to any storage end-point (such as local browser storage, a filesystem or couchdb).\n\n# Usage\n\nInstantiate EventVat with existing data or without. Methods and events are hung off of the new instance. Each method that can act on the instance will raise an event by the same name. \n\n## events\nEventVat uses <a href=\"https://github.com/hij1nx/EventEmitter2\">EventEmitter</a>. Listeners can attached to an EventVat object. An EventVat object can emit and event and a listener will respond. An event has three characteristics, the event name, a listener and an associated data key or wildcard.\n\n### Key based events\n\n```javascript\n  var vat = EventVat();\n\n  vat.on('get foo', function(key, value) {\n    console.log('getting: ', key, value);\n  });\n\n  demo.get('foo');\n```\n\n### Wildcard events\n\n```javascript\n  var vat = EventVat();\n\n  vat.on('get foo', function(key, value) {\n    console.log('getting: ', key, value);\n  });\n\n  vat.get('foo');\n```\n\n(The MIT License)\n\nCopyright (c) 2010 hij1nx <http://www.twitter.com/hij1nx>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"},"0.1.4":{"name":"eventvat","version":"0.1.4","description":"Evented, in-process key/value store for Node.js and the browser","main":"./lib/index.js","directories":{"lib":"./lib","example":"./example"},"repository":{"type":"git","url":"git://github.com/hij1nx/EventVat.git"},"keywords":["storage","database","redis"],"author":{"name":"hij1nx","email":"hij1nx@me.com","url":"http://www.nodejitsu.com"},"contributors":[{"name":"Roly Fentanes","url":"https://github.com/fent"}],"maintainers":[{"name":"hij1nx","email":"hij1nx@me.com"}],"dependencies":{"eventemitter2":">=0.4.x"},"devDependencies":{"nodeunit":"*"},"scripts":{"test":"nodeunit test/*-test.js"},"license":"MIT","engine":{"node":">=0.4"},"_npmUser":{"name":"hij1nx","email":"hij1nx@me.com"},"_id":"eventvat@0.1.4","optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.0-3","_nodeVersion":"v0.6.9","_defaultsLoaded":true,"dist":{"shasum":"bcc2c2ee4ac0b8e3d3d3106d8de4f71ff20bcb3e","tarball":"https://registry.npmjs.org/eventvat/-/eventvat-0.1.4.tgz","integrity":"sha512-r+zIRYR5kqqrbp4FOg9j5ZMPdJmho6vN46D8+1pfdrc6XM6nnbSqwwrpVRml0EsGKefaTq9mHWbVQiHF0XMhyQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDx2OSlOMU/KxVQ3pn8arOy44l/Oq2yHdDS0NMhDc9Y4wIhAIe+crjCePHM37UW5YYoYLn79SitefdojMOHRaqHLTLF"}]},"readme":"![Alt text](https://github.com/hij1nx/EventVat/raw/master/logo.png)\n\n# Synopsis\n\n### EventVat is an evented in-process key/value store with an API like that of Redis. It's event based, which means that when a method is called that affects the data, corresponding events will be raised. It supports 5 data types, Strings, Numbers, Booleans, Arrays and Hashes.\n\n# Motivation\n\n - A datastore for small, volitile working sets\n - For processes who do not share data, it reduces unnecessary trips across the process boundary.\n - Portability, works in the browser and on the server.\n - Write to any storage end-point (such as local browser storage, a filesystem or couchdb).\n\n# Installation\n\n```bash\n$npm install eventvat\n```\n\n# Usage\nEach new instance of `EventVat` is a hash. There are lots of convenient methods attached to each new instance.\n\n## events\nEventVat uses <a href=\"https://github.com/hij1nx/EventEmitter2\">EventEmitter</a>. Listeners can attached to an EventVat object. An EventVat object can emit and event and a listener will respond. An event has three characteristics, the event name, a listener and an associated data key or wildcard.\n\n```javascript\n  var vat = EventVat();\n\n  vat.on('get foo', function(key, value) {\n    console.log('`' + key + '` has the value: `' + value + '`');\n  });\n\n  vat.set('foo', 'hello, world');\n  vat.get('foo');\n```\n\n# Tests\n\n```bash\n$npm test\n```\n\n(The MIT License)\n\nCopyright (c) 2010 hij1nx <http://www.twitter.com/hij1nx>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"},"0.1.5":{"name":"eventvat","version":"0.1.5","description":"Evented, in-process key/value store for Node.js and the browser","main":"./lib/index.js","directories":{"lib":"./lib","example":"./example"},"repository":{"type":"git","url":"git://github.com/hij1nx/EventVat.git"},"keywords":["storage","database","redis"],"author":{"name":"hij1nx","email":"hij1nx@me.com","url":"http://www.nodejitsu.com"},"contributors":[{"name":"Roly Fentanes","url":"https://github.com/fent"}],"maintainers":[{"name":"hij1nx","email":"hij1nx@me.com"}],"dependencies":{"eventemitter2":">=0.4.x"},"devDependencies":{"nodeunit":"*"},"scripts":{"test":"nodeunit test/*-test.js"},"license":"MIT","engine":{"node":">=0.4"},"_npmUser":{"name":"hij1nx","email":"hij1nx@me.com"},"_id":"eventvat@0.1.5","optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.0-3","_nodeVersion":"v0.6.9","_defaultsLoaded":true,"dist":{"shasum":"5316c9dfa63fbcb11a4b7d80c656a0c0e80103da","tarball":"https://registry.npmjs.org/eventvat/-/eventvat-0.1.5.tgz","integrity":"sha512-9aj7xfHumTNT9PB5I1jkJePr8WrPy28ZxumKzYS9l+RPsSCma6IRmkjYDVf21yma8eQMqJ8jCPeujNlyVo1CvA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCeKXTSOhD0ZiphFlfih1zkSPbviy1ybjJzJh9bG6R2GAIhAOVUOf2RkcgHyzq+cB+P2tRY9mUW1aP0dqP8GK17pP8u"}]},"readme":"![Alt text](https://github.com/hij1nx/EventVat/raw/master/logo.png)\n\n# Synopsis\n\n### EventVat is an evented in-process key/value store with an API like that of Redis. It's event based, which means that when a method is called that affects the data, corresponding events will be raised. It supports 5 data types, Strings, Numbers, Booleans, Arrays and Hashes.\n\n# Motivation\n\n - A datastore for small, volitile working sets\n - For processes who do not share data, it reduces unnecessary trips across the process boundary.\n - Portability, works in the browser and on the server.\n - Write to any storage end-point (such as local browser storage, a filesystem or couchdb).\n\n# Installation\n\n```bash\n$npm install eventvat\n```\n\n# Usage\nEach new instance of `EventVat` is a hash. There are lots of convenient methods attached to each new instance.\n\n## events\nEventVat uses <a href=\"https://github.com/hij1nx/EventEmitter2\">EventEmitter</a>. Listeners can attached to an EventVat object. An EventVat object can emit and event and a listener will respond. An event has three characteristics, the event name, a listener and an associated data key or wildcard.\n\n```javascript\n  var vat = EventVat();\n\n  vat.on('get foo', function(key, value) {\n    console.log('`' + key + '` has the value: `' + value + '`');\n  });\n\n  vat.set('foo', 'hello, world');\n  vat.get('foo');\n```\n\n# Tests\n\n```bash\n$npm test\n```\n\n(The MIT License)\n\nCopyright (c) 2010 hij1nx <http://www.twitter.com/hij1nx>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"},"0.1.6":{"name":"eventvat","version":"0.1.6","description":"Evented, in-process key/value store for Node.js and the browser","main":"./lib/index.js","directories":{"lib":"./lib","example":"./example"},"repository":{"type":"git","url":"git://github.com/hij1nx/EventVat.git"},"keywords":["storage","database","redis"],"author":{"name":"hij1nx","email":"hij1nx@me.com","url":"http://www.nodejitsu.com"},"contributors":[{"name":"Roly Fentanes","url":"https://github.com/fent"}],"maintainers":[{"name":"hij1nx","email":"hij1nx@me.com"}],"dependencies":{"eventemitter2":">=0.4.x"},"devDependencies":{"nodeunit":"*"},"scripts":{"test":"nodeunit test/*-test.js"},"license":"MIT","engine":{"node":">=0.4"},"_npmUser":{"name":"hij1nx","email":"hij1nx@me.com"},"_id":"eventvat@0.1.6","optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.0-3","_nodeVersion":"v0.6.9","_defaultsLoaded":true,"dist":{"shasum":"4d94da02cfa5f4c04024c91218654cde557280ec","tarball":"https://registry.npmjs.org/eventvat/-/eventvat-0.1.6.tgz","integrity":"sha512-aFyCpYP8mlTYIhcXOfIxwnMNyziPD4muwn4NGeKgcUd1oysB/xZSF15lBRewe1VT2/qV/hwW9VvR6D6tLFcySQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD5yQVYk7sdY2uYxCIrCVMvJp4SFdxPXwfmHMgfsnkB6gIgMZwloADVs/+NS9YMj+6oAoHTxD3TgSNd1ISZ6GjJhR4="}]},"readme":"![Alt text](https://github.com/hij1nx/EventVat/raw/master/logo.png)\n\n# Synopsis\n\n### EventVat is an evented in-process key/value store with an API like that of Redis. It's event based, which means that when a method is called that affects the data, corresponding events will be raised. It supports 5 data types, Strings, Numbers, Booleans, Arrays and Hashes.\n\n# Motivation\n\n - A datastore for small, volitile working sets\n - For processes who do not share data, it reduces unnecessary trips across the process boundary.\n - Portability, works in the browser and on the server.\n - Write to any storage end-point (such as local browser storage, a filesystem or couchdb).\n\n# Installation\n\n```bash\n$npm install eventvat\n```\n\n# Usage\nEach new instance of `EventVat` is a hash. There are lots of convenient methods attached to each new instance.\n\n## events\nEventVat uses <a href=\"https://github.com/hij1nx/EventEmitter2\">EventEmitter</a>. Listeners can attached to an EventVat object. An EventVat object can emit and event and a listener will respond. An event has three characteristics, the event name, a listener and an associated data key or wildcard.\n\n```javascript\n  var vat = EventVat();\n\n  vat.on('get foo', function(key, value)\n\n\n    console.log('`' + key + '` has the value: `' + value + '`');\n  });\n\n  vat.set('foo', 'hello, world');\n  vat.get('foo');\n```\n\n# API\n\n## instance methods\n\n### publish()\nSynonymous with `EventEmitter2.prototype.emit`\n\n### subscribe()\nSynonymous with `EventEmitter2.prototype.on`\n\n### unsubscribe()\nSynonymous with `EventEmitter2.prototype.removeListener`\n\n### die(key)\nExpire a key\n\n### del(key /* ... */)\nDelete a key\n\n### exists(key)\nDetermine if a key exists\n\n### expire(key, ttl)\nSet a key's time to live in seconds\n\n### expireat(key, dueDate)\nSet the expiration for a key as a UNIX timestamp\n\n### keys(regex)\nFind all keys matching the given pattern\n\n### move(key, db)\nMove a key to another database\n\n### object(subcommend /* ... */)\nInspect the internals of an object\n\n### persist(key)\nRemove the expiration from a key\n\n### randomkey()\nReturn a random key from the keyspace\n\n### rename(oldKey, newKey)\nRename a key\n\n### renamenx(oldKey, newKey)\nRename a key, only if the new key does not exist\n\n### sort()\nSort the elements in a list, set or sorted set\n\n### type(key)\nDetermine the type stored at key\n\n### ttl(key)\nGet the time to live for a key\n\n### append(key, value)\nAppend a value to a key\n\n### decr(key)\nDecrement the integer value of a key by one\n\n### decrby(key, value)\nDecrement the integer value of a key by the given number\n\n### get(key)\nGet the value of a key\n\n### getbit(key)\nReturns the bit value at offset in the string value stored at key\n\n### getrange(key, start, end)\nGet a substring of the string stored at a key\n\n### getset(key, value)\nSet the string value of a key and return its old value\n\n### incr(key)\nIncrement the integer value of a key by one\n\n### incrby(key, value)\nIncrement the integer value of a key by the given number\n\n### mget(key /* ... */)\nGet the values of all the given keys\n\n### mset(keys /* ... */, values /* ... */)\nSet multiple keys to multiple values\n\n### msetnx(keys /* ... */, values /* ... */)\nSet multiple keys to multiple values, only if none of the keys exist\n\n### set(key, value, ttl)\nSet the string value of a key\n\n### setbit(key, offset, value)\nSets or clears the bit at offset in the string value stored at key\n\n### setex(key, seconds, value)\nSet the value and expiration of a key\n\n### setnx(key, value, ttl)\nSet the value of a key, only if the key does not exist\n\n### setrange(key, offset, value)\nOverwrite part of a string at key starting at the specified offset\n\n### strlen(key)\nGet the length of the value stored in a key\n\n### hdel(key, field /* ... */)\nDelete one or more hash fields\n\n### hexists(key, field)\nDetermine if a hash field exists\n\n### hget(key, field)\nGet the value of a hash field\n\n### hgetall(key)\nGet all the fields and values in a hash\n\n### hincr(key, field)\nIncrement the integer value of a hash field by one\n\n### hincrby(key, field, value)\nIncrement the integer value of a hash field by the given number\n\n### hdecr(key, field)\nDecrement the integer value of a hash field by one\n\n### hdecrby(key, field, value)\nDecrement the integer value of a hash field by the given number  \n\n### hkeys(key)\nGet all the fields in a hash\n\n### hlen(key)\nGet the number of fields in a hash\n\n### hmget(key, field /* ... */)\nGet the values of all the given hash fields\n\n### hmset(key, fields /* ... */, values /* ... */)\nSet multiple hash fields to multiple values\n\n### hset(key, field, value)\nSet the string value of a hash field\n\n### hsetnx(key, field, value /* ... */)\nSet the value of a hash field, only if the field does not exist\n\n### hvals(key)\nGet all the values in a hash\n\n### dump(stringify)\nDump the current data store into a string\n\n### swap(a, b, depth)\nSwap two values\n\n### findin(key, value)\nSearch within the value of a key\n\n# Tests\n\n```bash\n$npm test\n```\n\n(The MIT License)\n\nCopyright (c) 2010 hij1nx <http://www.twitter.com/hij1nx>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE DBSIZEORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"},"0.1.7":{"name":"eventvat","version":"0.1.7","description":"Evented, in-process key/value store for Node.js and the browser","main":"./lib/eventvat.js","directories":{"lib":"./lib","example":"./example"},"repository":{"type":"git","url":"git://github.com/hij1nx/EventVat.git"},"keywords":["storage","database","redis"],"author":{"name":"hij1nx","email":"hij1nx@me.com","url":"http://www.nodejitsu.com"},"contributors":[{"name":"Roly Fentanes","url":"https://github.com/fent"}],"maintainers":[{"name":"hij1nx","email":"hij1nx@me.com"}],"dependencies":{"eventemitter2":">=0.4.x"},"devDependencies":{"nodeunit":"*"},"scripts":{"test":"nodeunit test/*-test.js"},"license":"MIT","engine":{"node":">=0.4"},"_npmUser":{"name":"hij1nx","email":"hij1nx@me.com"},"_id":"eventvat@0.1.7","optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.0-3","_nodeVersion":"v0.6.9","_defaultsLoaded":true,"dist":{"shasum":"fe7ade375c567156dd55b4085540b7e2d1bf3212","tarball":"https://registry.npmjs.org/eventvat/-/eventvat-0.1.7.tgz","integrity":"sha512-1mQY1U2Loo7LDPNuqPy6xM6Sh0MFEYYDIbHgCP9IRManEcuC7yy3NeGvJGCIPuGKgyKMsEb8R9B8XMmLISXiuQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJiRT8AR9lWeQdoBHP1onZBVbIGECISEdivDx+u3WV9AIhAKrUqn0U1EgbeCy/Z0PL2a8/yhP+po3JY+nlziBBPVbU"}]},"readme":"![Alt text](https://github.com/hij1nx/EventVat/raw/master/logo.png)\n\n# Synopsis\n\n### EventVat is an evented in-process key/value store with an API like that of Redis. It's event based, which means that when a method is called that affects the data, corresponding events will be raised. It supports 5 data types, Strings, Numbers, Booleans, Arrays and Hashes.\n\n# Motivation\n\n - A datastore for small, volitile working sets\n - For processes who do not share data, it reduces unnecessary trips across the process boundary.\n - Portability, works in the browser and on the server.\n - Write to any storage end-point (such as local browser storage, a filesystem or couchdb).\n\n# Installation\n\n```bash\n$npm install eventvat\n```\n\n# Usage\nEach new instance of `EventVat` is a hash. There are lots of convenient methods attached to each new instance.\n\n## events\nEventVat uses <a href=\"https://github.com/hij1nx/EventEmitter2\">EventEmitter</a>. Listeners can attached to an EventVat object. An EventVat object can emit and event and a listener will respond. An event has three characteristics, the event name, a listener and an associated data key or wildcard.\n\n```javascript\n  var vat = EventVat();\n\n  vat.on('get foo', function(key, value)\n\n\n    console.log('`' + key + '` has the value: `' + value + '`');\n  });\n\n  vat.set('foo', 'hello, world');\n  vat.get('foo');\n```\n\n# API\n\n## instance methods\n\n### publish()\nSynonymous with `EventEmitter2.prototype.emit`\n\n### subscribe()\nSynonymous with `EventEmitter2.prototype.on`\n\n### unsubscribe()\nSynonymous with `EventEmitter2.prototype.removeListener`\n\n### die(key)\nExpire a key\n\n### del(key /* ... */)\nDelete a key\n\n### exists(key)\nDetermine if a key exists\n\n### expire(key, ttl)\nSet a key's time to live in seconds\n\n### expireat(key, dueDate)\nSet the expiration for a key as a UNIX timestamp\n\n### keys(regex)\nFind all keys matching the given pattern\n\n### move(key, db)\nMove a key to another database\n\n### object(subcommend /* ... */)\nInspect the internals of an object\n\n### persist(key)\nRemove the expiration from a key\n\n### randomkey()\nReturn a random key from the keyspace\n\n### rename(oldKey, newKey)\nRename a key\n\n### renamenx(oldKey, newKey)\nRename a key, only if the new key does not exist\n\n### sort()\nSort the elements in a list, set or sorted set\n\n### type(key)\nDetermine the type stored at key\n\n### ttl(key)\nGet the time to live for a key\n\n### append(key, value)\nAppend a value to a key\n\n### decr(key)\nDecrement the integer value of a key by one\n\n### decrby(key, value)\nDecrement the integer value of a key by the given number\n\n### get(key)\nGet the value of a key\n\n### getbit(key)\nReturns the bit value at offset in the string value stored at key\n\n### getrange(key, start, end)\nGet a substring of the string stored at a key\n\n### getset(key, value)\nSet the string value of a key and return its old value\n\n### incr(key)\nIncrement the integer value of a key by one\n\n### incrby(key, value)\nIncrement the integer value of a key by the given number\n\n### mget(key /* ... */)\nGet the values of all the given keys\n\n### mset(keys /* ... */, values /* ... */)\nSet multiple keys to multiple values\n\n### msetnx(keys /* ... */, values /* ... */)\nSet multiple keys to multiple values, only if none of the keys exist\n\n### set(key, value, ttl)\nSet the string value of a key\n\n### setbit(key, offset, value)\nSets or clears the bit at offset in the string value stored at key\n\n### setex(key, seconds, value)\nSet the value and expiration of a key\n\n### setnx(key, value, ttl)\nSet the value of a key, only if the key does not exist\n\n### setrange(key, offset, value)\nOverwrite part of a string at key starting at the specified offset\n\n### strlen(key)\nGet the length of the value stored in a key\n\n### hdel(key, field /* ... */)\nDelete one or more hash fields\n\n### hexists(key, field)\nDetermine if a hash field exists\n\n### hget(key, field)\nGet the value of a hash field\n\n### hgetall(key)\nGet all the fields and values in a hash\n\n### hincr(key, field)\nIncrement the integer value of a hash field by one\n\n### hincrby(key, field, value)\nIncrement the integer value of a hash field by the given number\n\n### hdecr(key, field)\nDecrement the integer value of a hash field by one\n\n### hdecrby(key, field, value)\nDecrement the integer value of a hash field by the given number  \n\n### hkeys(key)\nGet all the fields in a hash\n\n### hlen(key)\nGet the number of fields in a hash\n\n### hmget(key, field /* ... */)\nGet the values of all the given hash fields\n\n### hmset(key, fields /* ... */, values /* ... */)\nSet multiple hash fields to multiple values\n\n### hset(key, field, value)\nSet the string value of a hash field\n\n### hsetnx(key, field, value /* ... */)\nSet the value of a hash field, only if the field does not exist\n\n### hvals(key)\nGet all the values in a hash\n\n### dump(stringify)\nDump the current data store into a string\n\n### swap(a, b, depth)\nSwap two values\n\n### findin(key, value)\nSearch within the value of a key\n\n# Tests\n\n```bash\n$npm test\n```\n\n(The MIT License)\n\nCopyright (c) 2010 hij1nx <http://www.twitter.com/hij1nx>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE DBSIZEORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"},"0.1.8":{"name":"eventvat","version":"0.1.8","description":"Evented, in-process key/value store for Node.js and the browser","main":"./lib/eventvat.js","directories":{"lib":"./lib","example":"./example"},"repository":{"type":"git","url":"git://github.com/hij1nx/EventVat.git"},"keywords":["storage","database","redis"],"author":{"name":"hij1nx","email":"hij1nx@me.com","url":"http://www.nodejitsu.com"},"contributors":[{"name":"Roly Fentanes","url":"https://github.com/fent"}],"maintainers":[{"name":"hij1nx","email":"hij1nx@me.com"}],"dependencies":{"eventemitter2":">=0.4.x"},"devDependencies":{"nodeunit":"*"},"scripts":{"test":"nodeunit test/*-test.js"},"license":"MIT","engine":{"node":">=0.4"},"_npmUser":{"name":"hij1nx","email":"hij1nx@me.com"},"_id":"eventvat@0.1.8","optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.0-3","_nodeVersion":"v0.6.9","_defaultsLoaded":true,"dist":{"shasum":"97123222a070597a51c77274722c78be23b9b48f","tarball":"https://registry.npmjs.org/eventvat/-/eventvat-0.1.8.tgz","integrity":"sha512-5H8B4SfjEb6WV6KYbWOPOVKIZoOoWSTh5M/d/V/ujJ+jD3K23M6CfZt+B+1jkwFumfYt7nltCkUu7GE5X+VbaA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDHSId5maTy+QqjDsBDdEr0Fk9q3db3VFBTfysNDUG3JwIhALZ3yLQ5U3AVgmEET1ptcvp8I5wuw/rhE6kxrjp9QKYo"}]},"readme":"![Alt text](https://github.com/hij1nx/EventVat/raw/master/logo.png)\n\n# Synopsis\n\n### EventVat is an evented in-process key/value store with an API like that of Redis. It's event based, which means that when a method is called that affects the data, corresponding events will be raised. It supports 5 data types, Strings, Numbers, Booleans, Arrays and Hashes.\n\n# Motivation\n\n - A datastore for small, volitile working sets\n - For processes who do not share data, it reduces unnecessary trips across the process boundary.\n - Portability, works in the browser and on the server.\n - Write to any storage end-point (such as local browser storage, a filesystem or couchdb).\n\n# Installation\n\n```bash\n$npm install eventvat\n```\n\n# Usage\nEach new instance of `EventVat` is a hash. There are lots of convenient methods attached to each new instance.\n\n## events\nEventVat uses <a href=\"https://github.com/hij1nx/EventEmitter2\">EventEmitter</a>. Listeners can attached to an EventVat object. An EventVat object can emit and event and a listener will respond. An event has three characteristics, the event name, a listener and an associated data key or wildcard.\n\n```javascript\n  var vat = EventVat();\n\n  vat.on('get foo', function(key, value)\n\n\n    console.log('`' + key + '` has the value: `' + value + '`');\n  });\n\n  vat.set('foo', 'hello, world');\n  vat.get('foo');\n```\n\n# API\n\n## instance methods\n\n### publish()\nSynonymous with `EventEmitter2.prototype.emit`\n\n### subscribe()\nSynonymous with `EventEmitter2.prototype.on`\n\n### unsubscribe()\nSynonymous with `EventEmitter2.prototype.removeListener`\n\n### die(key)\nExpire a key\n\n### del(key /* ... */)\nDelete a key\n\n### exists(key)\nDetermine if a key exists\n\n### expire(key, ttl)\nSet a key's time to live in seconds\n\n### expireat(key, dueDate)\nSet the expiration for a key as a UNIX timestamp\n\n### keys(regex)\nFind all keys matching the given pattern\n\n### move(key, db)\nMove a key to another database\n\n### object(subcommend /* ... */)\nInspect the internals of an object\n\n### persist(key)\nRemove the expiration from a key\n\n### randomkey()\nReturn a random key from the keyspace\n\n### rename(oldKey, newKey)\nRename a key\n\n### renamenx(oldKey, newKey)\nRename a key, only if the new key does not exist\n\n### sort()\nSort the elements in a list, set or sorted set\n\n### type(key)\nDetermine the type stored at key\n\n### ttl(key)\nGet the time to live for a key\n\n### append(key, value)\nAppend a value to a key\n\n### decr(key)\nDecrement the integer value of a key by one\n\n### decrby(key, value)\nDecrement the integer value of a key by the given number\n\n### get(key)\nGet the value of a key\n\n### getbit(key)\nReturns the bit value at offset in the string value stored at key\n\n### getrange(key, start, end)\nGet a substring of the string stored at a key\n\n### getset(key, value)\nSet the string value of a key and return its old value\n\n### incr(key)\nIncrement the integer value of a key by one\n\n### incrby(key, value)\nIncrement the integer value of a key by the given number\n\n### mget(key /* ... */)\nGet the values of all the given keys\n\n### mset(keys /* ... */, values /* ... */)\nSet multiple keys to multiple values\n\n### msetnx(keys /* ... */, values /* ... */)\nSet multiple keys to multiple values, only if none of the keys exist\n\n### set(key, value, ttl)\nSet the string value of a key\n\n### setbit(key, offset, value)\nSets or clears the bit at offset in the string value stored at key\n\n### setex(key, seconds, value)\nSet the value and expiration of a key\n\n### setnx(key, value, ttl)\nSet the value of a key, only if the key does not exist\n\n### setrange(key, offset, value)\nOverwrite part of a string at key starting at the specified offset\n\n### strlen(key)\nGet the length of the value stored in a key\n\n### hdel(key, field /* ... */)\nDelete one or more hash fields\n\n### hexists(key, field)\nDetermine if a hash field exists\n\n### hget(key, field)\nGet the value of a hash field\n\n### hgetall(key)\nGet all the fields and values in a hash\n\n### hincr(key, field)\nIncrement the integer value of a hash field by one\n\n### hincrby(key, field, value)\nIncrement the integer value of a hash field by the given number\n\n### hdecr(key, field)\nDecrement the integer value of a hash field by one\n\n### hdecrby(key, field, value)\nDecrement the integer value of a hash field by the given number  \n\n### hkeys(key)\nGet all the fields in a hash\n\n### hlen(key)\nGet the number of fields in a hash\n\n### hmget(key, field /* ... */)\nGet the values of all the given hash fields\n\n### hmset(key, fields /* ... */, values /* ... */)\nSet multiple hash fields to multiple values\n\n### hset(key, field, value)\nSet the string value of a hash field\n\n### hsetnx(key, field, value /* ... */)\nSet the value of a hash field, only if the field does not exist\n\n### hvals(key)\nGet all the values in a hash\n\n### dump(stringify)\nDump the current data store into a string\n\n### swap(a, b, depth)\nSwap two values\n\n### findin(key, value)\nSearch within the value of a key\n\n# Tests\n\n```bash\n$npm test\n```\n\n(The MIT License)\n\nCopyright (c) 2010 hij1nx <http://www.twitter.com/hij1nx>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE DBSIZEORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"},"0.1.9":{"name":"eventvat","version":"0.1.9","description":"Evented, in-process key/value store for Node.js and the browser","main":"./lib/eventvat.js","directories":{"lib":"./lib","example":"./example"},"repository":{"type":"git","url":"git://github.com/hij1nx/EventVat.git"},"keywords":["storage","database","redis"],"author":{"name":"hij1nx","email":"hij1nx@me.com","url":"http://www.nodejitsu.com"},"contributors":[{"name":"Roly Fentanes","url":"https://github.com/fent"}],"maintainers":[{"name":"hij1nx","email":"hij1nx@me.com"}],"dependencies":{"eventemitter2":">=0.4.x"},"devDependencies":{"nodeunit":"*"},"scripts":{"test":"nodeunit test/*-test.js"},"license":"MIT","engine":{"node":">=0.4"},"_npmUser":{"name":"hij1nx","email":"hij1nx@me.com"},"_id":"eventvat@0.1.9","optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.0-3","_nodeVersion":"v0.6.9","_defaultsLoaded":true,"dist":{"shasum":"a6afbaffae66089525ba2b2968b6daa71191f288","tarball":"https://registry.npmjs.org/eventvat/-/eventvat-0.1.9.tgz","integrity":"sha512-3ioY8nK9DrzfUnW3BTPuzz7E3s7Njx3JjpE1hnOyzAH9tUzuD8zw2TtxjJnEYFUKIoB0k4ljDHG0g2AGa42LXA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGykF3sMoXKGP7JNbFUlwxEPayF5Ug/Pfu8IosLWGRV2AiEA0xr5ri53k/9Sy6gQhCg/Ona1PdFBhjFglMlMT2lFJss="}]},"readme":"![Alt text](https://github.com/hij1nx/EventVat/raw/master/logo.png)\n\n# Synopsis\n\n### EventVat is an evented in-process key/value store with an API like that of Redis. It's event based, which means that when a method is called that affects the data, corresponding events will be raised. It supports 5 data types, Strings, Numbers, Booleans, Arrays and Hashes.\n\n# Motivation\n\n - A datastore for small, volitile working sets\n - For processes who do not share data, it reduces unnecessary trips across the process boundary.\n - Portability, works in the browser and on the server.\n - Write to any storage end-point (such as local browser storage, a filesystem or couchdb).\n\n# Installation\n\n```bash\n$npm install eventvat\n```\n\n# Usage\nEach new instance of `EventVat` is a hash. There are lots of convenient methods attached to each new instance.\n\n## events\nEventVat uses <a href=\"https://github.com/hij1nx/EventEmitter2\">EventEmitter</a>. Listeners can attached to an EventVat object. An EventVat object can emit and event and a listener will respond. An event has three characteristics, the event name, a listener and an associated data key or wildcard.\n\n```javascript\n  var vat = EventVat();\n\n  vat.on('get foo', function(key, value)\n\n\n    console.log('`' + key + '` has the value: `' + value + '`');\n  });\n\n  vat.set('foo', 'hello, world');\n  vat.get('foo');\n```\n\n# API\n\n## instance methods\n\n### publish()\nSynonymous with `EventEmitter2.prototype.emit`\n\n### subscribe()\nSynonymous with `EventEmitter2.prototype.on`\n\n### unsubscribe()\nSynonymous with `EventEmitter2.prototype.removeListener`\n\n### die(key)\nExpire a key\n\n### del(key /* ... */)\nDelete a key\n\n### exists(key)\nDetermine if a key exists\n\n### expire(key, ttl)\nSet a key's time to live in seconds\n\n### expireat(key, dueDate)\nSet the expiration for a key as a UNIX timestamp\n\n### keys(regex)\nFind all keys matching the given pattern\n\n### move(key, db)\nMove a key to another database\n\n### object(subcommend /* ... */)\nInspect the internals of an object\n\n### persist(key)\nRemove the expiration from a key\n\n### randomkey()\nReturn a random key from the keyspace\n\n### rename(oldKey, newKey)\nRename a key\n\n### renamenx(oldKey, newKey)\nRename a key, only if the new key does not exist\n\n### sort()\nSort the elements in a list, set or sorted set\n\n### type(key)\nDetermine the type stored at key\n\n### ttl(key)\nGet the time to live for a key\n\n### append(key, value)\nAppend a value to a key\n\n### decr(key)\nDecrement the integer value of a key by one\n\n### decrby(key, value)\nDecrement the integer value of a key by the given number\n\n### get(key)\nGet the value of a key\n\n### getbit(key)\nReturns the bit value at offset in the string value stored at key\n\n### getrange(key, start, end)\nGet a substring of the string stored at a key\n\n### getset(key, value)\nSet the string value of a key and return its old value\n\n### incr(key)\nIncrement the integer value of a key by one\n\n### incrby(key, value)\nIncrement the integer value of a key by the given number\n\n### mget(key /* ... */)\nGet the values of all the given keys\n\n### mset(keys /* ... */, values /* ... */)\nSet multiple keys to multiple values\n\n### msetnx(keys /* ... */, values /* ... */)\nSet multiple keys to multiple values, only if none of the keys exist\n\n### set(key, value, ttl)\nSet the string value of a key\n\n### setbit(key, offset, value)\nSets or clears the bit at offset in the string value stored at key\n\n### setex(key, seconds, value)\nSet the value and expiration of a key\n\n### setnx(key, value, ttl)\nSet the value of a key, only if the key does not exist\n\n### setrange(key, offset, value)\nOverwrite part of a string at key starting at the specified offset\n\n### strlen(key)\nGet the length of the value stored in a key\n\n### hdel(key, field /* ... */)\nDelete one or more hash fields\n\n### hexists(key, field)\nDetermine if a hash field exists\n\n### hget(key, field)\nGet the value of a hash field\n\n### hgetall(key)\nGet all the fields and values in a hash\n\n### hincr(key, field)\nIncrement the integer value of a hash field by one\n\n### hincrby(key, field, value)\nIncrement the integer value of a hash field by the given number\n\n### hdecr(key, field)\nDecrement the integer value of a hash field by one\n\n### hdecrby(key, field, value)\nDecrement the integer value of a hash field by the given number  \n\n### hkeys(key)\nGet all the fields in a hash\n\n### hlen(key)\nGet the number of fields in a hash\n\n### hmget(key, field /* ... */)\nGet the values of all the given hash fields\n\n### hmset(key, fields /* ... */, values /* ... */)\nSet multiple hash fields to multiple values\n\n### hset(key, field, value)\nSet the string value of a hash field\n\n### hsetnx(key, field, value /* ... */)\nSet the value of a hash field, only if the field does not exist\n\n### hvals(key)\nGet all the values in a hash\n\n### dump(stringify)\nDump the current data store into a string\n\n### swap(a, b, depth)\nSwap two values\n\n### findin(key, value)\nSearch within the value of a key\n\n# Tests\n\n```bash\n$npm test\n```\n\n(The MIT License)\n\nCopyright (c) 2010 hij1nx <http://www.twitter.com/hij1nx>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE DBSIZEORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"},"0.2.0":{"name":"eventvat","version":"0.2.0","description":"Evented, in-process key/value store for Node.js and the browser","main":"./lib/eventvat.js","directories":{"lib":"./lib","example":"./example"},"repository":{"type":"git","url":"git://github.com/hij1nx/EventVat.git"},"keywords":["storage","database","redis"],"author":{"name":"hij1nx","email":"hij1nx@me.com","url":"http://www.nodejitsu.com"},"contributors":[{"name":"Roly Fentanes","url":"https://github.com/fent"}],"maintainers":[{"name":"hij1nx","email":"hij1nx@me.com"}],"dependencies":{"eventemitter2":">=0.4.x"},"devDependencies":{"nodeunit":"*"},"scripts":{"test":"nodeunit test/*-test.js"},"license":"MIT","engine":{"node":">=0.4"},"_npmUser":{"name":"hij1nx","email":"hij1nx@me.com"},"_id":"eventvat@0.2.0","optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.12","_nodeVersion":"v0.6.14","_defaultsLoaded":true,"dist":{"shasum":"7c0efd83655c60d081109b83972fa98eb3623e5d","tarball":"https://registry.npmjs.org/eventvat/-/eventvat-0.2.0.tgz","integrity":"sha512-ccZgyKWF7IBSHD5b9utG+l2IyYXCfGDyApKzft7io1GNq2G1AQYrTDMedjM9VTotnRo+LTAe0kF+lxGa+Im69A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG/fkZIWTGkrisdxuVJLyYN+Uz11cU34vJgMpRG+ykwgAiANZ1hAE4P6/hg+CPZSgG6AkG9cW3dtDVLilIMCM9G0Rg=="}]},"readme":"![Alt text](https://github.com/hij1nx/EventVat/raw/master/logo.png)\n\n# Synopsis\n\n### EventVat is an evented in-process key/value store with an API like that of Redis. It's event based, which means that when a method is called that affects the data, corresponding events will be raised. It supports 5 data types, Strings, Numbers, Booleans, Arrays and Hashes.\n\n# Motivation\n\n - A datastore for small, volitile working sets\n - For processes who do not share data, it reduces unnecessary trips across the process boundary.\n - Portability, works in the browser and on the server.\n - Write to any storage end-point (such as local browser storage, a filesystem or couchdb).\n\n# Installation\n\n```bash\n$npm install eventvat\n```\n\n# Usage\nEach new instance of `EventVat` is a hash. There are lots of convenient methods attached to each new instance.\n\n## events\nEventVat uses <a href=\"https://github.com/hij1nx/EventEmitter2\">EventEmitter</a>. Listeners can attached to an EventVat object. An EventVat object can emit and event and a listener will respond. An event has three characteristics, the event name, a listener and an associated data key or wildcard.\n\n```javascript\n  var vat = EventVat();\n\n  vat.on('get foo', function(key, value)\n\n\n    console.log('`' + key + '` has the value: `' + value + '`');\n  });\n\n  vat.set('foo', 'hello, world');\n  vat.get('foo');\n```\n\n# API\n\n## instance methods\n\n### publish()\nSynonymous with `EventEmitter2.prototype.emit`\n\n### subscribe()\nSynonymous with `EventEmitter2.prototype.on`\n\n### unsubscribe()\nSynonymous with `EventEmitter2.prototype.removeListener`\n\n### die(key)\nExpire a key\n\n### del(key /* ... */)\nDelete a key\n\n### exists(key)\nDetermine if a key exists\n\n### expire(key, ttl)\nSet a key's time to live in seconds\n\n### expireat(key, dueDate)\nSet the expiration for a key as a UNIX timestamp\n\n### keys(regex)\nFind all keys matching the given pattern\n\n### move(key, db)\nMove a key to another database\n\n### object(subcommend /* ... */)\nInspect the internals of an object\n\n### persist(key)\nRemove the expiration from a key\n\n### randomkey()\nReturn a random key from the keyspace\n\n### rename(oldKey, newKey)\nRename a key\n\n### renamenx(oldKey, newKey)\nRename a key, only if the new key does not exist\n\n### sort()\nSort the elements in a list, set or sorted set\n\n### type(key)\nDetermine the type stored at key\n\n### ttl(key)\nGet the time to live for a key\n\n### append(key, value)\nAppend a value to a key\n\n### decr(key)\nDecrement the integer value of a key by one\n\n### decrby(key, value)\nDecrement the integer value of a key by the given number\n\n### get(key)\nGet the value of a key\n\n### getbit(key)\nReturns the bit value at offset in the string value stored at key\n\n### getrange(key, start, end)\nGet a substring of the string stored at a key\n\n### getset(key, value)\nSet the string value of a key and return its old value\n\n### incr(key)\nIncrement the integer value of a key by one\n\n### incrby(key, value)\nIncrement the integer value of a key by the given number\n\n### mget(key /* ... */)\nGet the values of all the given keys\n\n### mset(keys /* ... */, values /* ... */)\nSet multiple keys to multiple values\n\n### msetnx(keys /* ... */, values /* ... */)\nSet multiple keys to multiple values, only if none of the keys exist\n\n### set(key, value, ttl)\nSet the string value of a key\n\n### setbit(key, offset, value)\nSets or clears the bit at offset in the string value stored at key\n\n### setex(key, seconds, value)\nSet the value and expiration of a key\n\n### setnx(key, value, ttl)\nSet the value of a key, only if the key does not exist\n\n### setrange(key, offset, value)\nOverwrite part of a string at key starting at the specified offset\n\n### strlen(key)\nGet the length of the value stored in a key\n\n### hdel(key, field /* ... */)\nDelete one or more hash fields\n\n### hexists(key, field)\nDetermine if a hash field exists\n\n### hget(key, field)\nGet the value of a hash field\n\n### hgetall(key)\nGet all the fields and values in a hash\n\n### hincr(key, field)\nIncrement the integer value of a hash field by one\n\n### hincrby(key, field, value)\nIncrement the integer value of a hash field by the given number\n\n### hdecr(key, field)\nDecrement the integer value of a hash field by one\n\n### hdecrby(key, field, value)\nDecrement the integer value of a hash field by the given number  \n\n### hkeys(key)\nGet all the fields in a hash\n\n### hlen(key)\nGet the number of fields in a hash\n\n### hmget(key, field /* ... */)\nGet the values of all the given hash fields\n\n### hmset(key, fields /* ... */, values /* ... */)\nSet multiple hash fields to multiple values\n\n### hset(key, field, value)\nSet the string value of a hash field\n\n### hsetnx(key, field, value /* ... */)\nSet the value of a hash field, only if the field does not exist\n\n### hvals(key)\nGet all the values in a hash\n\n### dump(stringify)\nDump the current data store into a string\n\n### swap(a, b, depth)\nSwap two values\n\n### findin(key, value)\nSearch within the value of a key\n\n# Tests\n\n```bash\n$npm test\n```\n\n(The MIT License)\n\nCopyright (c) 2010 hij1nx <http://www.twitter.com/hij1nx>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE DBSIZEORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"},"0.2.1":{"name":"eventvat","version":"0.2.1","description":"Evented, in-process key/value store for Node.js and the browser","main":"./lib/eventvat.js","directories":{"lib":"./lib","example":"./example"},"repository":{"type":"git","url":"http://github.com/hij1nx/EventVat.git"},"keywords":["storage","database","redis"],"author":{"name":"hij1nx","email":"hij1nx@me.com","url":"http://www.nodejitsu.com"},"contributors":[{"name":"Roly Fentanes","url":"https://github.com/fent"}],"maintainers":[{"name":"hij1nx","email":"hij1nx@me.com"}],"dependencies":{"eventemitter2":">=0.4.x"},"devDependencies":{"nodeunit":"*"},"scripts":{"test":"nodeunit test/*-test.js"},"license":"MIT","engine":{"node":">=0.4"},"readme":"![Alt text](https://github.com/hij1nx/EventVat/raw/master/logo.png)\n\n# Synopsis\n\n### EventVat is an evented in-process key/value store with an API like that of Redis. It's event based, which means that when a method is called that affects the data, corresponding events will be raised. It supports 5 data types, Strings, Numbers, Booleans, Arrays and Hashes.\n\n# Motivation\n\n - A datastore for small, volitile working sets\n - For processes who do not share data, it reduces unnecessary trips across the process boundary.\n - Portability, works in the browser and on the server.\n - Write to any storage end-point (such as local browser storage, a filesystem or couchdb).\n\n# Installation\n\n```bash\n$npm install eventvat\n```\n\n# Usage\nEach new instance of `EventVat` is a hash. There are lots of convenient methods attached to each new instance.\n\n## events\nEventVat uses <a href=\"https://github.com/hij1nx/EventEmitter2\">EventEmitter2</a>. Listeners can attached to an EventVat object. An EventVat object can emit and event and a listener will respond. An event has three characteristics, the event name, a listener and an associated data key or wildcard.\n\n```javascript\n  var vat = EventVat();\n\n  vat.on('get foo', function(key, value) {\n\n    console.log('`' + key + '` has the value: `' + value + '`');\n  });\n\n  vat.set('foo', 'hello, world');\n  vat.get('foo');\n```\n\n# API\n\n## instance methods\n\n### publish()\nSynonymous with `EventEmitter2.prototype.emit`\n\n### subscribe()\nSynonymous with `EventEmitter2.prototype.on`\n\n### unsubscribe()\nSynonymous with `EventEmitter2.prototype.removeListener`\n\n### die(key)\nExpire a key\n\n### del(key /* ... */)\nDelete a key\n\n### exists(key)\nDetermine if a key exists\n\n### expire(key, ttl)\nSet a key's time to live in seconds\n\n### expireat(key, dueDate)\nSet the expiration for a key as a UNIX timestamp\n\n### keys(regex)\nFind all keys matching the given pattern\n\n### move(key, db)\nMove a key to another database\n\n### object(subcommend /* ... */)\nInspect the internals of an object\n\n### persist(key)\nRemove the expiration from a key\n\n### randomkey()\nReturn a random key from the keyspace\n\n### rename(oldKey, newKey)\nRename a key\n\n### renamenx(oldKey, newKey)\nRename a key, only if the new key does not exist\n\n### sort()\nSort the elements in a list, set or sorted set\n\n### type(key)\nDetermine the type stored at key\n\n### ttl(key)\nGet the time to live for a key\n\n### append(key, value)\nAppend a value to a key\n\n### decr(key)\nDecrement the integer value of a key by one\n\n### decrby(key, value)\nDecrement the integer value of a key by the given number\n\n### get(key)\nGet the value of a key\n\n### getbit(key)\nReturns the bit value at offset in the string value stored at key\n\n### getrange(key, start, end)\nGet a substring of the string stored at a key\n\n### getset(key, value)\nSet the string value of a key and return its old value\n\n### incr(key)\nIncrement the integer value of a key by one\n\n### incrby(key, value)\nIncrement the integer value of a key by the given number\n\n### mget(key /* ... */)\nGet the values of all the given keys\n\n### mset(keys /* ... */, values /* ... */)\nSet multiple keys to multiple values\n\n### msetnx(keys /* ... */, values /* ... */)\nSet multiple keys to multiple values, only if none of the keys exist\n\n### set(key, value, ttl)\nSet the string value of a key\n\n### setbit(key, offset, value)\nSets or clears the bit at offset in the string value stored at key\n\n### setex(key, seconds, value)\nSet the value and expiration of a key\n\n### setnx(key, value, ttl)\nSet the value of a key, only if the key does not exist\n\n### setrange(key, offset, value)\nOverwrite part of a string at key starting at the specified offset\n\n### strlen(key)\nGet the length of the value stored in a key\n\n### hdel(key, field /* ... */)\nDelete one or more hash fields\n\n### hexists(key, field)\nDetermine if a hash field exists\n\n### hget(key, field)\nGet the value of a hash field\n\n### hgetall(key)\nGet all the fields and values in a hash\n\n### hincr(key, field)\nIncrement the integer value of a hash field by one\n\n### hincrby(key, field, value)\nIncrement the integer value of a hash field by the given number\n\n### hdecr(key, field)\nDecrement the integer value of a hash field by one\n\n### hdecrby(key, field, value)\nDecrement the integer value of a hash field by the given number  \n\n### hkeys(key)\nGet all the fields in a hash\n\n### hlen(key)\nGet the number of fields in a hash\n\n### hmget(key, field /* ... */)\nGet the values of all the given hash fields\n\n### hmset(key, fields /* ... */, values /* ... */)\nSet multiple hash fields to multiple values\n\n### hset(key, field, value)\nSet the string value of a hash field\n\n### hsetnx(key, field, value /* ... */)\nSet the value of a hash field, only if the field does not exist\n\n### hvals(key)\nGet all the values in a hash\n\n### dump(stringify)\nDump the current data store into a string\n\n### swap(a, b, depth)\nSwap two values\n\n### findin(key, value)\nSearch within the value of a key\n\n# Tests\n\n```bash\n$npm test\n```\n\n(The MIT License)\n\nCopyright (c) 2010 hij1nx <http://www.twitter.com/hij1nx>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE DBSIZEORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","readmeFilename":"README.md","_id":"eventvat@0.2.1","dist":{"shasum":"a399a0c334cf891ad434837e1b1b95fab97cc46c","tarball":"https://registry.npmjs.org/eventvat/-/eventvat-0.2.1.tgz","integrity":"sha512-03RimX4xy+4fAV5sdIPd87Y7Q5p/kFVuvOJbCWCL2FX8K7Ujzd1sa3oZEtqxdGWLoIf89yL+dLBFqxHeEp70MQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCffc9t+JNqavFFXWvh0QaUxHTFIb/34GBDoAXEtUmIxgIhAIS6hxmiCIZDOAYMyAYMhHdERHyvAAh5VcJl4KjM+vod"}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"hij1nx","email":"paolo@async.ly"}}},"maintainers":[{"name":"hij1nx","email":"hij1nx@me.com"}],"time":{"modified":"2022-06-17T21:37:41.026Z","created":"2011-09-02T13:04:22.953Z","0.1.1":"2011-09-02T13:04:23.369Z","0.1.2":"2012-01-31T18:56:51.276Z","0.1.3":"2012-02-01T22:24:28.633Z","0.1.4":"2012-02-04T18:55:24.785Z","0.1.5":"2012-02-07T18:55:41.231Z","0.1.6":"2012-02-08T18:24:30.563Z","0.1.7":"2012-02-12T01:54:26.355Z","0.1.8":"2012-02-28T20:43:46.923Z","0.1.9":"2012-03-22T04:14:59.262Z","0.2.0":"2012-04-07T22:54:32.041Z","0.2.1":"2013-03-18T22:15:12.904Z"},"author":{"name":"hij1nx","email":"hij1nx@me.com","url":"http://www.nodejitsu.com"},"repository":{"type":"git","url":"http://github.com/hij1nx/EventVat.git"},"users":{"joliva":true}}