{"_id":"src","maintainers":[{"name":"wlaurance","email":"w.laurance@gmail.com"}],"keywords":["Simple","Redis","Cache"],"dist-tags":{"latest":"1.1.2"},"author":{"name":"Will S. Laurance"},"description":"Simple Redis Cache","readme":"src\n===\n\nSimple Redis Cache\n[![Build Status](https://travis-ci.org/wlaurance/src.png)](https://travis-ci.org/wlaurance/src)\n\n###Usage\n\nsrc takes one hash parameter with url and expiry defined. Expiry is the\nnumber of seconds a value is non expired in Redis.\n\n```javascript\nvar src = require('src');\nvar cache = src(\n  {\n    url:'redis://user:password@example.com:9073/'\n    ,expiry:2\n  }\n);\n```\nCallbacks for set are optional\n```javascript\ncache.set('key', 'value', [cb]);\n```\nget requires a callback\n```javascript\ncache.get('key', function(err, value){\n  if(typeof value !== 'undefined')\n    console.log(value);\n});\n```\nIf the key has expired, err will not be used to determine this. Err will\nonly be a non null value when an error is thrown from Redis.\n\nIf you want to delete a key from the cache explicity src provides this\nfunctionality through ```cache.del```\n\nCallbacks are optional for del\n```javascript\ncache.del('key', [cb]);\n```\n","repository":{"type":"git","url":"git://github.com/wlaurance/src.git"},"users":{"oussamawess123":true,"tinyhill":true,"suleyma":true,"siddharthdumbre":true,"huriatiputri":true,"smith.27":true},"bugs":{"url":"https://github.com/wlaurance/src/issues"},"license":"MIT","versions":{"1.1.2":{"name":"src","version":"1.1.2","description":"Simple Redis Cache","main":"index.js","scripts":{"test":"mocha -t 4000"},"repository":{"type":"git","url":"git://github.com/wlaurance/src.git"},"keywords":["Simple","Redis","Cache"],"author":{"name":"Will S. Laurance"},"license":"MIT","dependencies":{"redis-url":"~0.2.0","uuid":"~1.4.1","underscore":"~1.6.0"},"devDependencies":{"mocha":"~1.17.1","async":"~0.2.10","underscore":"~1.6.0"},"bugs":{"url":"https://github.com/wlaurance/src/issues"},"homepage":"https://github.com/wlaurance/src","_id":"src@1.1.2","dist":{"shasum":"78abdd1c08caca26cc6cf45bd580b56d93acfb7f","tarball":"https://nexus.nspop.dk/nexus/repository/nsp-npm/src/-/src-1.1.2.tgz","integrity":"sha512-xOKk/hC+DMAWZVEu0zf/1y2vegH1dQD2W2jldxpFCAnavfrK8IPwECKw5ZDcxhd3+kmzaVyPECMAYVy2WDV9YQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCL2s3MuYXQJKmMfkYWm9mXn3+AeHHHCA6Q8tKX89DiawIgYGYEUVmfFZEAqJDcd8EYaXbDpzZLg/f+9KAn9PRT4/A="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"wlaurance","email":"w.laurance@gmail.com"},"maintainers":[{"name":"wlaurance","email":"w.laurance@gmail.com"}],"directories":{}},"1.0.0":{"name":"src","version":"1.0.0","description":"Simple Redis Cache","main":"index.js","scripts":{"test":"mocha -t 4000"},"repository":{"type":"git","url":"git://github.com/wlaurance/src.git"},"keywords":["Simple","Redis","Cache"],"author":{"name":"Will S. Laurance"},"license":"MIT","dependencies":{"redis-url":"~0.2.0"},"devDependencies":{"mocha":"~1.17.1"},"bugs":{"url":"https://github.com/wlaurance/src/issues"},"homepage":"https://github.com/wlaurance/src","_id":"src@1.0.0","dist":{"shasum":"2c537ef6ad5fc666c1bd4a7a03a5537df145b979","tarball":"https://nexus.nspop.dk/nexus/repository/nsp-npm/src/-/src-1.0.0.tgz","integrity":"sha512-lKgOg41eeb76ZTINO0Mb7VIBlMEp78+vegFONSZVHhM6VwMSErv1jiXqU0sKi7DtjD3pbzjXjx9HtN7235SiAw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCvO5532ImEMLgEDs2rz5bjOBsVjttei9BeixJzYziaCQIhALmV1x/RptntWyN8XQe0UILYHmq+NZaDiZQzhVIWmDZM"}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"wlaurance","email":"w.laurance@gmail.com"},"maintainers":[{"name":"wlaurance","email":"w.laurance@gmail.com"}],"directories":{}},"1.1.0":{"name":"src","version":"1.1.0","description":"Simple Redis Cache","main":"index.js","scripts":{"test":"mocha -t 4000"},"repository":{"type":"git","url":"git://github.com/wlaurance/src.git"},"keywords":["Simple","Redis","Cache"],"author":{"name":"Will S. Laurance"},"license":"MIT","dependencies":{"redis-url":"~0.2.0","uuid":"~1.4.1","underscore":"~1.6.0"},"devDependencies":{"mocha":"~1.17.1","async":"~0.2.10","underscore":"~1.6.0"},"bugs":{"url":"https://github.com/wlaurance/src/issues"},"homepage":"https://github.com/wlaurance/src","_id":"src@1.1.0","dist":{"shasum":"9c8a4020d10f59f28656d0080961933994336d86","tarball":"https://nexus.nspop.dk/nexus/repository/nsp-npm/src/-/src-1.1.0.tgz","integrity":"sha512-Bg0lss2zPY5XlHoDbHsrP3PhxwJzujf/jvYb1DgZMltBpqcFPlTT51+i6Oyq4H2aJZUT+fIcbKqyN7caSfpECg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/l7ffYtEHL1KoaGOaXEoRoHudyWf2wV0XDYA/36DmpgIgAyrazcum9BmM5nhIswUnrG6luGNKoQXOeX0hAiV7HiI="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"wlaurance","email":"w.laurance@gmail.com"},"maintainers":[{"name":"wlaurance","email":"w.laurance@gmail.com"}],"directories":{}},"0.1.0":{"name":"src","version":"0.1.0","description":"Simple Redis Cache","main":"index.js","scripts":{"test":"mocha -t 4000"},"repository":{"type":"git","url":"git://github.com/wlaurance/src.git"},"keywords":["Simple","Redis","Cache"],"author":{"name":"Will S. Laurance"},"license":"MIT","dependencies":{"redis-url":"~0.1.0"},"devDependencies":{"mocha":"~1.7.4"},"_id":"src@0.1.0","dist":{"shasum":"5ba692901e33dd94b278441783cab1a94da5a4e5","tarball":"https://nexus.nspop.dk/nexus/repository/nsp-npm/src/-/src-0.1.0.tgz","integrity":"sha512-XmbmpgCk+HsPevT0s21h/Gqjkv/DSYudWv2gf373nUw5CbKPTSLttfzcrW8oe3kIeElVa3cZEA9wfEiGO846ZA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCVdulBFQeG3AcLDZ/iUn7Cj5qwxtKUcjNrXHOub3hAjAIgXPUys5JHmANtLEaqsFVDISaoe9XWUx/k5r4zTOkqIZ4="}]},"_npmVersion":"1.1.65","_npmUser":{"name":"wlaurance","email":"w.laurance@gmail.com"},"maintainers":[{"name":"wlaurance","email":"w.laurance@gmail.com"}],"directories":{}},"1.1.1":{"name":"src","version":"1.1.1","description":"Simple Redis Cache","main":"index.js","scripts":{"test":"mocha -t 4000"},"repository":{"type":"git","url":"git://github.com/wlaurance/src.git"},"keywords":["Simple","Redis","Cache"],"author":{"name":"Will S. Laurance"},"license":"MIT","dependencies":{"redis-url":"~0.2.0","uuid":"~1.4.1","underscore":"~1.6.0"},"devDependencies":{"mocha":"~1.17.1","async":"~0.2.10","underscore":"~1.6.0"},"bugs":{"url":"https://github.com/wlaurance/src/issues"},"homepage":"https://github.com/wlaurance/src","_id":"src@1.1.1","dist":{"shasum":"4f20234abf8f78a2130a0a47e5ea270ffcf9ded4","tarball":"https://nexus.nspop.dk/nexus/repository/nsp-npm/src/-/src-1.1.1.tgz","integrity":"sha512-nhTw2RJ9ohqEUmPbLvvPYYZEa3Kc9I4sxwVS6IzdzX5kXryvHYwkAiofljYZDrh2AWLeiFKRv7UKn3B/2+zRFg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBi9KHfYHWmuA93W2ZJV+vKcBT8dyoCyd1VMXNV/Ong2AiEAoD/aVOxeDZC98/ClZPWfQaITB9KKzeO2eUAEsRZSXd8="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"wlaurance","email":"w.laurance@gmail.com"},"maintainers":[{"name":"wlaurance","email":"w.laurance@gmail.com"}],"directories":{}}},"name":"src","time":{"1.1.2":"2014-02-22T02:33:14.873Z","created":"2012-12-11T03:53:21.890Z","modified":"2025-05-07T15:12:42.480Z","1.0.0":"2014-02-20T22:07:49.657Z","0.0.0":"2012-12-11T03:53:22.861Z","1.1.0":"2014-02-22T01:46:23.579Z","0.1.0":"2012-12-11T05:02:59.442Z","1.1.1":"2014-02-22T02:06:16.682Z"},"readmeFilename":"README.md","homepage":"https://github.com/wlaurance/src"}