{"_id":"refreshing-config-redis","_rev":"78-fb602f9267d4d58876a9291918d218a1","name":"refreshing-config-redis","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"refreshing-config-redis","version":"0.1.0","keywords":["config","dynamic","refresh","publish","subscribe","redis"],"author":{"name":"William Bartholomew","email":"willbar@microsoft.com"},"license":"MIT","_id":"refreshing-config-redis@0.1.0","maintainers":[{"name":"microsoft","email":"npmjs@microsoft.com"}],"dist":{"shasum":"1a1fcaa333e78a9a1965b091e9126285238da3c7","tarball":"https://registry.npmjs.org/refreshing-config-redis/-/refreshing-config-redis-0.1.0.tgz","integrity":"sha512-JqDS2awYJzSy/ozVvJtuVgA7pST8GOmEJT1vSXFM14tGdMur83DwuGcMyXii0zhAJfgAqqm7tOxR749kjgYnZA==","signatures":[{"sig":"MEUCIBxisupyCNyA/jtcQCYNojfIkdHuOgM+KkZWRcMtY2kfAiEA+Gbjybw7jo95iU76PhITieyunXjPnu7BAR4iZfgTG1o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"1a1fcaa333e78a9a1965b091e9126285238da3c7","gitHead":"122853323b4fb4893745c2194ae5d1b78b129e44","scripts":{"lint":"eslint . --ignore-path .gitignore","prepublish":"npm run lint"},"_npmUser":{"name":"microsoft","email":"npmjs@microsoft.com"},"_npmVersion":"3.10.8","description":"Redis support for the [refreshing-config](https://github.com/Microsoft/refreshing-config) configuration library.","directories":{},"_nodeVersion":"6.9.1","dependencies":{"q":"1.4.1","uuid":"3.0.1"},"devDependencies":{"chai":"3.5.0","mocha":"3.2.0","sinon":"1.17.6","eslint":"3.12.2","opener":"1.4.2","istanbul":"0.4.5"},"_npmOperationalInternal":{"tmp":"tmp/refreshing-config-redis-0.1.0.tgz_1483129069847_0.2668219581246376","host":"packages-18-east.internal.npmjs.com"}}},"time":{"created":"2016-12-30T20:17:50.435Z","modified":"2026-07-16T15:48:56.632Z","0.1.0":"2016-12-30T20:17:50.435Z"},"author":{"name":"William Bartholomew","email":"willbar@microsoft.com"},"license":"MIT","keywords":["config","dynamic","refresh","publish","subscribe","redis"],"description":"Redis support for the [refreshing-config](https://github.com/Microsoft/refreshing-config) configuration library.","maintainers":[{"email":"npmjs@microsoft.com","name":"microsoft1es"},{"email":"microsoft-oss-publishing@microsoft.com","name":"microsoft-oss-releases"}],"readme":"![Version](https://img.shields.io/npm/v/refreshing-config-redis.svg)\n![License](https://img.shields.io/github/license/Microsoft/refreshing-config-redis.svg)\n![Downloads](https://img.shields.io/npm/dt/refreshing-config-redis.svg)\n\n# refreshing-config-redis\nRedis support for the [refreshing-config](https://github.com/Microsoft/refreshing-config) configuration library.\n\nValues are stored in Redis hashmaps and change notification is done via a Redis pub/sub channel.  Great for maintaining\na single configuration across multiple machines.\n\n# Usage\n1. Install refreshing-config, refreshing-config-redis, and redis:\n  ```bash\n    npm install --save refreshing-config refreshing-config-redis redis\n  ```\n\n2. Use the library:\n  ```javascript\n    // Import the dependencies\n    const redis = require('redis');\n    const RefreshingConfig = require('refreshing-config');\n    const RefreshingConfigRedis = require('refreshing-config-redis');\n\n    // Configure the client and store\n    const redisClient = redis.createClient();\n    const configurationName = 'my-config-key';\n    const channelName = `${configurationName}-channel`;\n    const configStore = new RefreshingConfigRedis.RedisConfigStore(redisClient, configurationName);\n    result[subsystemName] = new RefreshingConfig.RefreshingConfig(configStore)\n      .withExtension(new RefreshingConfigRedis.RedisPubSubRefreshPolicyAndChangePublisher(redisClient, channelName));\n\n    // Use the config\n    config.set('foo', 'bar')\n      .then(() => config.get('foo'))\n      .then(console.log);\n  ```\n\n# Contributing\nPull requests will gladly be considered!\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see\nthe [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com)\nwith any additional questions or comments.","readmeFilename":"README.md"}