{"_id":"PassiveRedis","_rev":"13-da049df72e30c293c7b6e774e50df6b3","name":"PassiveRedis","description":"Node ORM for Redis","dist-tags":{"latest":"0.0.6"},"versions":{"0.0.2":{"name":"PassiveRedis","version":"0.0.2","description":"Node ORM for Redis","homepage":"https://github.com/Jud/PassiveRedis","keywords":["ORM","Redis","Redis ORM","Passive","ActiveRecord"],"author":{"name":"Jud Stephenson","email":"Jud@Svpply.com"},"main":"./index.js","repository":{"type":"git","url":"git://github.com/Jud/PassiveRedis.git"},"dependencies":{"hiredis":">=0.1.0","redis":">=0.6.0"},"_npmUser":{"name":"jud","email":"Jud.Stephenson@gmail.com"},"_id":"PassiveRedis@0.0.2","devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.105","_nodeVersion":"v0.6.1","_defaultsLoaded":true,"dist":{"shasum":"b1e18cb9f4efcec28ead877878c60b3f5be4e1cf","tarball":"https://registry.npmjs.org/PassiveRedis/-/PassiveRedis-0.0.2.tgz","integrity":"sha512-F4sMJQwKI17qzZw3Q67E7OeEET0zxz45eXmGZCf2V0qEpEpW4TCa+q1RuaUuZ+Nqfyh1yrD2cvn0LQV9vzbd5Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDunOcZrAA/AA7rQ57ihqo2RylxAEBdn4dqm6IGwmtWFAIgU2oQJy2WCA5G/ENUIg7CqZBJoy01mCjaFRC3HtqxSKU="}]},"maintainers":[{"name":"jud","email":"Jud.Stephenson@gmail.com"}]},"0.0.3":{"name":"PassiveRedis","version":"0.0.3","description":"Node ORM for Redis","homepage":"https://github.com/Jud/PassiveRedis","keywords":["ORM","Redis","Redis ORM","Passive","ActiveRecord"],"author":{"name":"Jud Stephenson","email":"Jud@Svpply.com"},"main":"./index.js","repository":{"type":"git","url":"git://github.com/Jud/PassiveRedis.git"},"dependencies":{"hiredis":">=0.1.0","redis":">=0.6.0"},"_npmUser":{"name":"jud","email":"Jud.Stephenson@gmail.com"},"_id":"PassiveRedis@0.0.3","devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.105","_nodeVersion":"v0.6.1","_defaultsLoaded":true,"dist":{"shasum":"920a73e750eed21a82383cecbffbc145ef07d35a","tarball":"https://registry.npmjs.org/PassiveRedis/-/PassiveRedis-0.0.3.tgz","integrity":"sha512-aoIjosaj8l/mBXCSHUKZT0HTX1XWECeXc681AAqFN225yf7dDtSzciH30FoNHWwmjtoTeX3lZl6nJxhO+o5nPQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBBz8L0DmmvikKqOxRjOR3u6Cx5xXmG0NpTnLE8KZ53LAiA3zg6etzmm4sFLjdMscw7xt/lgSFf9FvS9cs6cmiYdGg=="}]},"maintainers":[{"name":"jud","email":"Jud.Stephenson@gmail.com"}]},"0.0.4":{"name":"PassiveRedis","version":"0.0.4","description":"Node ORM for Redis","homepage":"https://github.com/Jud/PassiveRedis","keywords":["ORM","Redis","Redis ORM","Passive","ActiveRecord"],"author":{"name":"Jud Stephenson","email":"Jud@Svpply.com"},"main":"./index.js","repository":{"type":"git","url":"git://github.com/Jud/PassiveRedis.git"},"dependencies":{"hiredis":">=0.1.0","redis":">=0.6.0"},"_npmUser":{"name":"jud","email":"Jud.Stephenson@gmail.com"},"_id":"PassiveRedis@0.0.4","devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.6.1","_defaultsLoaded":true,"dist":{"shasum":"b207079c793eea3799168a38547e5e6461058301","tarball":"https://registry.npmjs.org/PassiveRedis/-/PassiveRedis-0.0.4.tgz","integrity":"sha512-jsp6NuHLV37GFJ9K3HYoRjwrcvfxXxwph+/aTROPJps/qD5FMWgXx7ge0Ga/345FhS0BRjVolmADxzwfzbEDzg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmgNQ9fkOhUUwyJdzqqdw2gYxldkvjXXeyytkCylioKgIhAKKjXjdOCB6yUssOjWDle5KOJj3LXnAk5MoywnyOj6i7"}]},"maintainers":[{"name":"jud","email":"Jud.Stephenson@gmail.com"}]},"0.0.5":{"name":"PassiveRedis","version":"0.0.5","description":"Node ORM for Redis","homepage":"https://github.com/Jud/PassiveRedis","keywords":["ORM","Redis","Redis ORM","Passive","ActiveRecord"],"author":{"name":"Jud Stephenson","email":"Jud@Svpply.com"},"main":"./index.js","repository":{"type":"git","url":"git://github.com/Jud/PassiveRedis.git"},"dependencies":{"hiredis":">=0.1.0","redis":">=0.6.0"},"_npmUser":{"name":"jud","email":"Jud.Stephenson@gmail.com"},"_id":"PassiveRedis@0.0.5","devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.6.1","_defaultsLoaded":true,"dist":{"shasum":"b5133b5772222399aad430aa49e1287ddc5ca8bf","tarball":"https://registry.npmjs.org/PassiveRedis/-/PassiveRedis-0.0.5.tgz","integrity":"sha512-HEn/RmewcD7V4ICrlmzXgmTRAHG1gG2N6Cbod09nNVxFP4+dhPbCNkLisnfQiqp+NL38LjqWGbbsUQlOcpWsvA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCjcmQlbocYN+jPMsvOKLXdk7onvlJg6FhCA8gEyGlf2AIgEKdoC9JCoWJHvDmbiaJnl1jZ499A80/Lm0KSZwx8vvg="}]},"maintainers":[{"name":"jud","email":"Jud.Stephenson@gmail.com"}]},"0.0.6":{"name":"PassiveRedis","version":"0.0.6","description":"Node ORM for Redis","homepage":"https://github.com/Jud/PassiveRedis","keywords":["ORM","Redis","Redis ORM","Passive","ActiveRecord"],"author":{"name":"Jud Stephenson","email":"Jud@Svpply.com"},"main":"./index.js","repository":{"type":"git","url":"git://github.com/Jud/PassiveRedis.git"},"devDependencies":{"mocha":"*","should":"*","coffee-script":"*"},"dependencies":{"coffee-script":"*","hiredis":">=0.1.0","redis":">=0.6.0"},"scripts":{"test":"make tests"},"_npmUser":{"name":"jud","email":"Jud.Stephenson@gmail.com"},"_id":"PassiveRedis@0.0.6","optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.9","_nodeVersion":"v0.6.13","_defaultsLoaded":true,"dist":{"shasum":"333c9ed88315aba1eee8b4d777b74e833e8032ee","tarball":"https://registry.npmjs.org/PassiveRedis/-/PassiveRedis-0.0.6.tgz","integrity":"sha512-eTow54dXXoVBV4e670s6aVWgV9B0JKFWcEikH6JaOyqwrcZJRsffEuAt3OZqZ9c8BGYQXBwuDiaFiMGbzoofIw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCUXOc9fny83aSCx1iUfH4Ndtp6iDAb7i6EoA/Z9sZeGAIgDEdkKa2PJsa/BwOUyKVrz77437CyGouT+VVtwF/1Qk4="}]},"maintainers":[{"name":"jud","email":"Jud.Stephenson@gmail.com"}]}},"readme":"# PassiveRedis - A Node ORM for Redis\n\nPassiveRedis is an easy way to logically access data stored in a Redis\ndatastore. PassiveRedis is based off of the Ruby ORM ActiveRecord,\nthough it does not impliment all of its features (yet).\n\n# Making Models With PassiveRedis\n\nHere is a simple example for creating a User model with PassiveRedis.\nThis code should be placed in a directory containing all of the other\nmodels and the filename should correspond with the class name.\n\n```coffeescript\nPassiveRedis = (require 'PassiveRedis').PassiveRedis\n\nclass User extends PassiveRedis\n  @string_id: 'username'\n\n  @schema:\n    username: 'String'\n    email: 'String'\n    password: 'String'\n\n  @relationships:\n    hasMany:\n      mailboxes: {}\n      messages: {}\n\nexports.User = User\n```\n\n# Relationships (hasMany and hasOne)\n\nPassiveRedis supports hasMany and hasOne relationships that are defined\nwithin the Model class definition. To setup relationships simply create a `relationships`\nproperty on the model and define the hasMany and hasOne keys.\n\nUsage:\n\n```coffeescript\nMailbox.find 2, (err, mailbox) ->\n  if !err\n    # Assumes a hasOne relationship between Mailbox and User\n    mailbox.user (user) ->\n      console.log 'Mailbox\\'s user', user\n\n    mailbox.messages (messages) ->\n      console.log 'found', messages.length, 'messages'\n```\n\n\n# Getters and Setters\n\nWhen schema properties are accessed on the model, PassiveRedis\nimpliments getters and setters that check for getProperty style methods\non the model. If \"username\" was defined in the model schema, and a\ngetUsername method was defined on the model, an attempt to access the\nusername property would call the getUsername method.\n\n\n# License Information\n\nCopyright (c) 2011 Judson Stephenson\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","maintainers":[{"name":"jud","email":"Jud.Stephenson@gmail.com"}],"time":{"modified":"2022-06-13T02:15:33.483Z","created":"2011-11-20T05:46:26.619Z","0.0.2":"2011-11-20T05:46:27.094Z","0.0.3":"2011-11-20T06:22:37.998Z","0.0.4":"2011-11-21T02:03:39.247Z","0.0.5":"2011-11-21T02:17:51.648Z","0.0.6":"2012-04-25T02:15:13.994Z"},"author":{"name":"Jud Stephenson","email":"Jud@Svpply.com"},"repository":{"type":"git","url":"git://github.com/Jud/PassiveRedis.git"}}