{"_id":"@dynamico/redis-index-storage","_rev":"12-62e6a8be7a924de6bf3f1b90451c91fb","name":"@dynamico/redis-index-storage","dist-tags":{"latest":"0.0.1-alpha.10"},"versions":{"0.0.1-alpha.7":{"name":"@dynamico/redis-index-storage","version":"0.0.1-alpha.7","keywords":[],"author":{"name":"Soluto"},"license":"MIT","_id":"@dynamico/redis-index-storage@0.0.1-alpha.7","maintainers":[{"name":"eladav86","email":"eladav86@gmail.com"},{"name":"eladbezalel","email":"elad.bezalel@gmail.com"},{"name":"npmsoluto","email":"it@soluto.com"}],"homepage":"https://github.com/soluto/dynamico#readme","bugs":{"url":"https://github.com/soluto/dynamico/issues"},"dist":{"shasum":"f9a2f4263b29793d7496ded872a2302ae967953c","tarball":"https://registry.npmjs.org/@dynamico/redis-index-storage/-/redis-index-storage-0.0.1-alpha.7.tgz","fileCount":11,"integrity":"sha512-UPqvtxhBoSV6rdHVxxgldHglAzGMRG6rlbUsyS/etoxrOg5WPGQ2cwSK0zmLOxC0GwU3wkoR6Ex7r8eRHriCzA==","signatures":[{"sig":"MEQCIE20mYpx4V/O6Ih4LfA+FnjdO/fSNiwqCyrtg/dRNztmAiAN8tvKVLzdO3lL2sQW1uWW3No+JzJ7RnolaP6hrn7k3w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17887,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdRrvmCRA9TVsSAnZWagAAXoAP/0dXVsdFNYovGt8YjD7u\nDHq+f7wTA2q6xzICfKRO51roV3hvbNr+t7LWjXH+waCERqF5YM79egtBxJ9M\nJsvNBVfXLhQ0rlp1bEZYUoXlNOIcjylHbezt0y3jWQaQW/lMmsSRZpjNItk4\nQqhUY9Jx5HdSYwI7TAR5ae1YGkBqel+OiY76/Ll8Jx3R82OawAbxb/nPsm9k\nr6dnI4HIjRFyDQHaafVdcmsttJYuqcIjM3dz+OKRBCpwmltnmvCJkCQWbavJ\nv7+fFvNeMnzthqJaE64T0uH5+IjyxDk2OjEsA7msxYhnfgYMmezm/q3PKrij\nEpIbIH6l5rio6e729sxFW6jv/hlrD3J2ZK+2cX8oXZPn265FWTz03LqiHc5G\nOmK+sETbpmivDyU28dlA2zpGkJMWhr3A+1RbGmNU3G8f8Q+dRokheiljT43Y\nEQFvjp1oFkrI89va0+QYvm3t0IYEc3D8K9h+WIVBU94QJxnlDr7MbuDpg04B\nkckqx9sQHA5PfS+mSg8eLWrnzrylJD5xiwuIa8FovtEF5ipVPYmOwY0yqRVh\nVkalAAEKHk4M/8TxYb+w7Ij+uS6nLr7glslUfFjhqUHO5t+Rt91/m8tKEwTZ\nlaHoXis103mS0330582+xV2GZz26Elr83bBs9kD/vrmNQ/Hw7RZolNkoofZ1\nx+df\r\n=AzI3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"ba26ac7e566b08a02ab7483072c80dd5ed0c4f07","scripts":{"test":"jest","build":"npm run clean && npm run compile","clean":"rm -rf ./dist","compile":"tsc","coverage":"jest --coverage"},"_npmUser":{"name":"npmsoluto","email":"it@soluto.com"},"deprecated":"This package is no longer maintained and has been deprecated. Please migrate to other solutions as soon as possible.","repository":{"url":"git+https://github.com/soluto/dynamico.git","type":"git"},"_npmVersion":"lerna/3.14.1/node@v11.13.0+x64 (darwin)","description":"Redis storage implementation as Dynamico index storage provider","directories":{},"_nodeVersion":"11.13.0","dependencies":{"@dynamico/common-types":"*"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/redis":"^2.8.13","@dynamico/common-types":"^0.0.1-alpha.7"},"peerDependencies":{"redis":"^2.8.0"},"bundleDependencies":["@dynamico/common-types"],"_npmOperationalInternal":{"tmp":"tmp/redis-index-storage_0.0.1-alpha.7_1564916710278_0.1935831872053344","host":"s3://npm-registry-packages"}},"0.0.1-alpha.8":{"name":"@dynamico/redis-index-storage","version":"0.0.1-alpha.8","keywords":[],"author":{"name":"Soluto"},"license":"MIT","_id":"@dynamico/redis-index-storage@0.0.1-alpha.8","maintainers":[{"name":"eladav86","email":"eladav86@gmail.com"},{"name":"eladbezalel","email":"elad.bezalel@gmail.com"},{"name":"npmsoluto","email":"it@soluto.com"}],"homepage":"https://github.com/soluto/dynamico#readme","bugs":{"url":"https://github.com/soluto/dynamico/issues"},"dist":{"shasum":"be7b269e5974367d90f30b3de5ef6576b78c9df5","tarball":"https://registry.npmjs.org/@dynamico/redis-index-storage/-/redis-index-storage-0.0.1-alpha.8.tgz","fileCount":11,"integrity":"sha512-eYtN+4ICpkl3EEKUUYCNy3kjeP5AgFfrTMB9C9UXqZvAJztmXLOqto5lmDIuKZ5b5gwEvBVk30NZUPmpHtT/bQ==","signatures":[{"sig":"MEUCIB1e5oHci3jIwt3Baa71nhZjVSe4rbjqsBa+xY+r546cAiEAwA/t5fxF09N2kGiHhFqksoR2ZU0TXvlV3AonEolrGYo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17850,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdRsQECRA9TVsSAnZWagAA6pcP/jSJSVGUdr6qpdN+TuoE\nPtK+psOUrmeRNhItggm2IQvxwxveoWQHao5TUsK9DRh3XfJx5elBkjPfbVs3\nvqRFvh5yAlrqMwaOXQJTRcIIogT/oZSTt6uItIfeS56qn7/ACCbnN/L9+tsq\nRPUJBgBia2deUho1LB5YcJSgjvs0zuDtM+3B3drmWew3SVZXHxz3UaRPCojP\ntQMoVr+QyH6Oxvd9c4YR5MN9mEV4fwDZOwUSINcGlb3/fYaZTWEHqCfgAhSM\nY9OMqPEf4yNOAmgaXGUqBk4tbqbk9/skSL/XmvZSgasUOZIFLfASjA7rp/vi\nKrMm7f4jjz7XLIWCaXlf2GmrECdOlvNFcN18SRF+y3Ua+ju7Ni/nV0R8KzYC\nZnvQpj8s8/H40bU62hu3LQWsV3VlXmsyu5tVrkvQewVTlS/QEhAb/rll1qE3\njseXFgBZmd1HC6G//XtTyuisEuJQS9WRVWz9TQ/bMQhW/wJp+DrYkUd/K6yP\nrwTsYKxsLZWnYWTxGdUk+h4VE7COL0uAHmrGgaSPHD3snbILO0hLGyNrk0e2\nLNjN9R06vNAju+bmiaQYP7pzjWIzYXe0gy1pSXI709eY6qi/db4BMTJ8Hduk\nc/nkkvRVZ67yLI6V8Z3OPr6V5/33jaMl5mPffX2U48dUhz3KR1ITtOFJZ/OK\ncDKQ\r\n=dU8w\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"8da9cbe53df96622b9db9d82549990e9737842be","scripts":{"test":"jest","build":"npm run clean && npm run compile","clean":"rm -rf ./dist","compile":"tsc","coverage":"jest --coverage"},"_npmUser":{"name":"npmsoluto","email":"it@soluto.com"},"deprecated":"This package is no longer maintained and has been deprecated. Please migrate to other solutions as soon as possible.","repository":{"url":"git+https://github.com/soluto/dynamico.git","type":"git"},"_npmVersion":"lerna/3.14.1/node@v11.13.0+x64 (darwin)","description":"Redis storage implementation as Dynamico index storage provider","directories":{},"_nodeVersion":"11.13.0","dependencies":{"@dynamico/common-types":"^0.0.1-alpha.8"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/redis":"^2.8.13"},"peerDependencies":{"redis":"^2.8.0"},"_npmOperationalInternal":{"tmp":"tmp/redis-index-storage_0.0.1-alpha.8_1564918787741_0.41906634202934057","host":"s3://npm-registry-packages"}},"0.0.1-alpha.9":{"name":"@dynamico/redis-index-storage","version":"0.0.1-alpha.9","keywords":[],"author":{"name":"Soluto"},"license":"MIT","_id":"@dynamico/redis-index-storage@0.0.1-alpha.9","maintainers":[{"name":"eladav86","email":"eladav86@gmail.com"},{"name":"eladbezalel","email":"elad.bezalel@gmail.com"},{"name":"npmsoluto","email":"it@soluto.com"}],"homepage":"https://github.com/soluto/dynamico#readme","bugs":{"url":"https://github.com/soluto/dynamico/issues"},"dist":{"shasum":"c86d5f2bfa11c6614b7b8012e7a3eed3d6af863a","tarball":"https://registry.npmjs.org/@dynamico/redis-index-storage/-/redis-index-storage-0.0.1-alpha.9.tgz","fileCount":11,"integrity":"sha512-W3VYhkaHV63Mpl179occIi/QYfD58A/pkAS/pQtYrXipLqZlQf5U/Sz02RGofPtz2Ei6nFNcYdCPrSB8zx5PTA==","signatures":[{"sig":"MEUCIQDRbqgnu2RFyCfiB4qQmYucTQyoB1/FOpSYyVh4D6uzBwIgamudVbCIb/3xRzWbu91JY9f2KfEzLdIz/FHwh72ME1I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17850,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdUVr9CRA9TVsSAnZWagAAeSkP/1BEfzCZPzRG6ltzn/Ji\nbZxyaLiyJl6jNdzwC/vo+qBC1T8uFMxSHgbAMb3RJ6uA7y5YHqVq40hlObyW\n9IKk9mOZ7yqptkTESTsep5EjPps9QlHC4wfVOcyyslYWioGeUfksOZKO0A8V\nf+xDV5iF9XoNtL48M3++zFKR+B+kle+cD/CtHo8lldOppyo2zouQX6ErXjoX\nVyXKGBaKsoNxzS3J6LmaD7ZX2wb6x748rh+eSVvzsuYmIoly3lL/pzFg8AkV\nr8RWqiQY8+gfkJzA7D6JhHHsXHbYczllVAOu39nh0OGpcYkQgWP2BgNeBxmK\nvVfeINjpYvjpj+nnlQmo/kaqfPFCyOIbJLaotJYy6N86bLHl8vFnp/eBo8k+\nstcAZ50fYXOOM0PyFb4xokbBDlGriJwN8VAHpYvJoZQpPL7ADPYHcH7+kQ4r\nkZwLdXW2HINCB7NC8dk5GQs/8eB9ZaF05CLBoiXWbylUuNF5YlbubR4/+dik\nmS62Ez0I9pbE3SkMIedlpSf0Aje80wDS9UXd4CcEQ6P8cnXmXjY/6Ei4ROgf\naD6t2BDmpfK7gXFM3dQvG9YFVeegt3MbZZGNTgFdAmq56GcwpnBNnVXh0y1K\nQOymaQlwZeVqxMX2fzHvT476zy+D919Kztty5Nv1epMJqiXS6sY/CY5Xu0Eo\nFMe5\r\n=rsMm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"5e2ba86bfd6856859124c9b1116869b470112d4e","scripts":{"test":"jest","build":"npm run clean && npm run compile","clean":"rm -rf ./dist","compile":"tsc","coverage":"jest --coverage"},"_npmUser":{"name":"eladbezalel","email":"elad.bezalel@gmail.com"},"deprecated":"This package is no longer maintained and has been deprecated. Please migrate to other solutions as soon as possible.","repository":{"url":"git+https://github.com/soluto/dynamico.git","type":"git"},"_npmVersion":"lerna/3.14.1/node@v11.12.0+x64 (darwin)","description":"Redis storage implementation as Dynamico index storage provider","directories":{},"_nodeVersion":"11.12.0","dependencies":{"@dynamico/common-types":"^0.0.1-alpha.9"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/redis":"^2.8.13"},"peerDependencies":{"redis":"^2.8.0"},"_npmOperationalInternal":{"tmp":"tmp/redis-index-storage_0.0.1-alpha.9_1565612796789_0.6792418305878338","host":"s3://npm-registry-packages"}},"0.0.1-alpha.10":{"name":"@dynamico/redis-index-storage","version":"0.0.1-alpha.10","keywords":[],"author":{"name":"Soluto"},"license":"MIT","_id":"@dynamico/redis-index-storage@0.0.1-alpha.10","maintainers":[{"name":"eladav86","email":"eladav86@gmail.com"},{"name":"eladbezalel","email":"elad.bezalel@gmail.com"},{"name":"npmsoluto","email":"it@soluto.com"}],"homepage":"https://github.com/soluto/dynamico#readme","bugs":{"url":"https://github.com/soluto/dynamico/issues"},"dist":{"shasum":"0412916c1a5bf0c97bd31f03f7e88a65a370daae","tarball":"https://registry.npmjs.org/@dynamico/redis-index-storage/-/redis-index-storage-0.0.1-alpha.10.tgz","fileCount":11,"integrity":"sha512-kUECweXgc5p3qsS/BrMlMQ8FmtWnKUA28/p9YcF6QiZ2zq3KTjxDkIrihtcGeGh4KQWbzmt36bwdXwZzfdU/gw==","signatures":[{"sig":"MEUCIQDcltyvfJbur8n9MUJKKsQg9EHhnuOLcR3vCRj+I632bwIgY0koSQBHhimixS8Y2QayN50dI0HYtFulvghME1ep1Bg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17852,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdblEeCRA9TVsSAnZWagAAgBQP/Aq1nVz4sEg3ryQ6Lrdf\nMJDGQWKWXXNB5icMMX8JmsUKxX2hjRgXV+Tlu8nwgGqBTE8uXwuegcBgbrIm\nJxrlqodtPeQwce9xr/XzBztAZjcB6RpRct40jAgGGMenIrXJnUeIUvsbaep+\n7FtFXCGAITgd7A1dRD6X35FSqa4BG5uQlHmtd0eKuJTAkyXWd1UczKYXsWbq\nWq/o1zX285UciS4MdpRLdxXirYwHJrN53GHCchT8OTRYaqVe8EnaQ6Fiq6QT\nte6cZsMRk7meP3xW7ZmSkaQCrNtx7H9xpt5hf3nXaX2ywx5ob22AKgZTAizK\niUVDHF/t4TCQEbkjY1Dya4PKW3xGqSpC7YK0IwyJjGUw5LMDgYmu2WuUtM3s\n71DxXS8htNIEAospme6BXDQSntXVD0LZYyFTI698RLpnHwC0buB0yQVlzndE\nt5xSBNvXoMzxlO09Fadmlqe31+xaV9K72H+rkIo2ZQfROs2Z5bSJzv/+NHXC\nwzk2If/+yYiLoxFzDvW4/JoyTKFVJKWEMWJou/wz0Wcy4fmd+0k069l/samW\nQ7KtZGTpFbtdSNnqXSPROE2+rdp+D+q3OS74XkBVgB33lNk/JikI85wGTJYW\nudepICalQThHwMQVXn42P/28yBrIsmf9Sz5AGYXpeFd1ryd+RYmfXnt7jDiL\np5wR\r\n=hlBv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"6ce04f886526773758779dc60662ea8fbe886cff","scripts":{"test":"jest","build":"npm run clean && npm run compile","clean":"rm -rf ./dist","compile":"tsc","coverage":"jest --coverage"},"_npmUser":{"name":"npmsoluto","email":"it@soluto.com"},"deprecated":"This package is no longer maintained and has been deprecated. Please migrate to other solutions as soon as possible.","repository":{"url":"git+https://github.com/soluto/dynamico.git","type":"git"},"_npmVersion":"lerna/3.14.1/node@v11.13.0+x64 (darwin)","description":"Redis storage implementation as Dynamico index storage provider","directories":{},"_nodeVersion":"11.13.0","dependencies":{"@dynamico/common-types":"^0.0.1-alpha.10"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/redis":"^2.8.13"},"peerDependencies":{"redis":"^2.8.0"},"_npmOperationalInternal":{"tmp":"tmp/redis-index-storage_0.0.1-alpha.10_1567510814213_0.9299051226999016","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-08-04T11:05:10.085Z","modified":"2026-04-08T16:10:24.398Z","0.0.1-alpha.7":"2019-08-04T11:05:10.409Z","0.0.1-alpha.8":"2019-08-04T11:39:47.882Z","0.0.1-alpha.9":"2019-08-12T12:26:36.930Z","0.0.1-alpha.10":"2019-09-03T11:40:14.404Z"},"bugs":{"url":"https://github.com/soluto/dynamico/issues"},"author":{"name":"Soluto"},"license":"MIT","homepage":"https://github.com/soluto/dynamico#readme","keywords":[],"repository":{"url":"git+https://github.com/soluto/dynamico.git","type":"git"},"description":"Redis storage implementation as Dynamico index storage provider","maintainers":[{"email":"productsecurity@asurion.com","name":"asurion-security"}],"readme":"# Redis Index Storage\nAn index storage provider that can be used along with a components storage by `@dynamico/driver` to manage index in redis.\n\n## General\nRedis index storage expects to receive an initialized redis client and optionally a key name to use to save the index. It saves the index as a JSON string in a string typed value.\n\n__Note:__ this guide assumes you have an express server set up along with the dynamico express middleware, and have [composition storage](../composition-storage/README.md) ready to be used. If this is not the case refer to our [Getting Started - Backend](../readme.md) guide.\n\n## Getting Started With redis index storage\nLet's setup a redis index stroage provider, it'll be super fast and super fun!\nStart by installing the required dependencies in your server:\n```\n$ npm install @dynamico/redis-index-storage redis --save\n```\nNow find the file where you initialized dynamico middleware and add the following `require` statements:\n```javascript\nconst { RedisIndexStorage } = require('@dynamico/redis-index-storage');\nconst { redis } = require('redis');\n```\nNow let's create a redis client and use it to initialize the storage.\n```javascript\nconst redisClient = redis.createClient(/*options for connecting to your redis instance*/);\nconst indexKeyName = 'dynamico-index';\nconst indexStorage = new RedisIndexStorage(redisClient, indexKeyName);\n```\n\nWith this we have everything we need to initialize our [CompositionStorage](../composition-storage/README.md).\n\n## API\n* constructor\n    ```typescript\n    constructor(redisClient: RedisClient, indexKeyName = 'index')\n    ```\n    * Arguments\n        * redisClient\n            * An initialized and authenticated redisClient that conforms to node redis client.\n        * indexKeyName\n            * An optional argument to change the key name that is used to save the index. Defaults to `index`.\n* getIndex\n    ```typescript\n    getIndex(): Promise<Index>\n    ```\n    * Returns\n        * A promise that will be resolved to an object that implements the Index interface exported by `@dynamic/driver`. The index is create by reading the key name that was provided in the contructor and `JSON.parse`ing it. If no value is found for this key an empty object is returned.\n* upsertIndex\n    ```typescript\n    upsertIndex(index: Index): Promise<void>\n    ```\n    * Arguments\n        * index\n            * An object that implements the Index interface exported by `@dynamico/driver`,to either replace the existing object or created for the first time.\n    * Returns\n        * A promise that will be resolved as soon as the index is converted into a string by running `JSON.strigify` on it and saving it to the storage.","readmeFilename":"README.md"}