{"_id":"@baristaio/rcache","_rev":"2-f91c50b508f273cd2e95bb1ce900f85f","name":"@baristaio/rcache","dist-tags":{"latest":"0.0.1","alfa":"1.0.3-alfa"},"versions":{"1.0.1-alfa":{"name":"@baristaio/rcache","version":"1.0.1-alfa","keywords":[],"author":{"name":"Vadim-ri"},"license":"MIT","_id":"@baristaio/rcache@1.0.1-alfa","maintainers":[{"name":"baristajs","email":"info@baristajs.io"}],"homepage":"https://github.com/baristaio/rcache#readme","bugs":{"url":"https://github.com/baristaio/rcache/issues"},"dist":{"shasum":"bb3585faf7a102023933c4c08d5ba3dd515f75c4","tarball":"https://registry.npmjs.org/@baristaio/rcache/-/rcache-1.0.1-alfa.tgz","fileCount":7,"integrity":"sha512-Vn8N5BHeHUKEOcm33PivXXZ8kJrVPS/tAK7nbkdaHsBLx5ihGhUbDiN3UBY0/ZcmbrFiQaveZqYwO0pNCaQHzw==","signatures":[{"sig":"MEQCIDf0oFjHZ3i0aj6jp5b3+V3rjl9/QYO15zxfnHElmqJvAiA6zOWpqfoWiUqIWab33PSNhK21gM97cmGU9PLbd0FK7Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11081},"main":"index.js","gitHead":"25f93b192cfaca06eee6982abd1c7cd6f7738098","scripts":{"run":"node index.js","lint":"eslint . --ext .js","lint:fix":"eslint . --ext .js --fix"},"_npmUser":{"name":"baristajs","email":"info@baristajs.io"},"repository":{"url":"git+https://github.com/baristaio/rcache.git","type":"git"},"_npmVersion":"9.6.7","description":"The keys manager by group of keys in Redis cache. It allows to manage the keys by group of keys","directories":{"lib":"lib","test":"tests","example":"examples"},"_nodeVersion":"18.17.0","dependencies":{"redis":"^4.6.13"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^8.57.0","redis-mock":"^0.56.3","eslint-plugin-import":"^2.29.1","eslint-config-airbnb-base":"^15.0.0"},"_npmOperationalInternal":{"tmp":"tmp/rcache_1.0.1-alfa_1710369532805_0.009449642442677764","host":"s3://npm-registry-packages"}},"1.0.3-alfa":{"name":"@baristaio/rcache","version":"1.0.3-alfa","keywords":[],"author":{"name":"vadimri"},"license":"MIT","_id":"@baristaio/rcache@1.0.3-alfa","maintainers":[{"name":"baristajs","email":"info@baristajs.io"}],"homepage":"https://github.com/baristaio/rcache#readme","bugs":{"url":"https://github.com/baristaio/rcache/issues"},"dist":{"shasum":"f9aa62eb419ebcb528097c97970102a0f1258b85","tarball":"https://registry.npmjs.org/@baristaio/rcache/-/rcache-1.0.3-alfa.tgz","fileCount":7,"integrity":"sha512-ExI2hxWAY27rS+XarRau6AmgPvRNZXlAwCCnmT3X2FRDPpl3nGzDZ7sXQBCeNvY4ZUJUfKkC+PUej1IfhO6jlQ==","signatures":[{"sig":"MEQCIE9yU6ihEbJdNuJVX/w9vpuahiOPjmDPlEHU/c11C5lhAiB3UnVAEfHgLr9Px9U6onTosVoAPXNd94jLL0tYwz22Dw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12145},"main":"index.js","gitHead":"45e94d93a01859b1757bc5fe76d4b4a1f068e95f","scripts":{"run":"node index.js","lint":"eslint . --ext .js","test":"jest ./tests","coverage":"jest --coverage ./tests","lint:fix":"eslint . --ext .js --fix"},"_npmUser":{"name":"baristajs","email":"info@baristajs.io"},"repository":{"url":"git+https://github.com/baristaio/rcache.git","type":"git"},"_npmVersion":"9.6.7","description":"The keys manager by group of keys in Redis cache. It allows to manage the keys by group of keys","directories":{"lib":"lib","test":"tests","example":"examples"},"_nodeVersion":"18.17.0","dependencies":{"redis":"^4.6.13"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^29.7.0","eslint":"^8.57.0","redis-mock":"^0.56.3","eslint-plugin-import":"^2.29.1","eslint-config-airbnb-base":"^15.0.0"},"_npmOperationalInternal":{"tmp":"tmp/rcache_1.0.3-alfa_1710422237961_0.5442538108897435","host":"s3://npm-registry-packages"}},"0.0.1":{"name":"@baristaio/rcache","version":"0.0.1","description":"The keys manager by group of keys in Redis cache. It allows to manage the keys by group of keys","main":"index.js","scripts":{"run":"node index.js","lint":"eslint . --ext .js","lint:fix":"eslint . --ext .js --fix","test":"jest --coverage ./lib/","integration":"jest coverage ./tests","coverage":"jest --coverage ./tests"},"keywords":[],"author":{"name":"vadimri"},"license":"MIT","devDependencies":{"eslint":"^8.57.0","eslint-config-airbnb-base":"^15.0.0","eslint-plugin-import":"^2.29.1","jest":"^29.7.0","redis-mock":"^0.56.3"},"dependencies":{"redis":"^4.6.15"},"directories":{"example":"examples","lib":"lib","test":"tests"},"repository":{"type":"git","url":"git+https://github.com/baristaio/rcache.git"},"bugs":{"url":"https://github.com/baristaio/rcache/issues"},"homepage":"https://github.com/baristaio/rcache#readme","_id":"@baristaio/rcache@0.0.1","gitHead":"41074099d92b7e781ab25088b81182ffef4b2445","_nodeVersion":"20.18.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-yttDeXguMnMlbtJLvWG5CB4yXpHlKGw1YGv9ac6ek0PYA5X5I/dy256MHOBgWapHVJkmGtI5cDct1AoUNGtsoA==","shasum":"03eedf5c58bf1e1b232b8ec55bb16319092703a0","tarball":"https://registry.npmjs.org/@baristaio/rcache/-/rcache-0.0.1.tgz","fileCount":12,"unpackedSize":18708,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAIY1WZRCKqyxGUWeS8hYZaNAoEHWf2H1SdQcIBCfpNZAiEArEFammaHl8U0lzwYRSt2vIKd8D4KsyssMNrUaJnwv30="}]},"_npmUser":{"name":"baristajs","email":"info@baristajs.io"},"maintainers":[{"name":"baristajs","email":"info@baristajs.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rcache_0.0.1_1732543418018_0.6277412345140865"},"_hasShrinkwrap":false}},"time":{"created":"2024-03-13T22:38:52.738Z","modified":"2024-11-25T14:03:38.376Z","1.0.1-alfa":"2024-03-13T22:38:52.985Z","1.0.3-alfa":"2024-03-14T13:17:18.160Z","0.0.1":"2024-11-25T14:03:38.185Z"},"bugs":{"url":"https://github.com/baristaio/rcache/issues"},"author":{"name":"vadimri"},"license":"MIT","homepage":"https://github.com/baristaio/rcache#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/baristaio/rcache.git"},"description":"The keys manager by group of keys in Redis cache. It allows to manage the keys by group of keys","maintainers":[{"name":"baristajs","email":"info@baristajs.io"}],"readme":"# rcache\nThe caching group manager for Redis 4.*\n\n\n## Installation\n```bash\nnpm install rcache\n```\n\n##\n```javascript\nconst rcache = require('rcache');\nconst cache = new rcache.Cache({\n    host: 'localhost',\n    port: 6379,\n    password: 'password',\n    db: 0\n}); \n const group = new rcache.Group({\n    cache: cache,\n    name: 'group_name',\n    ttl: 60 * 60 * 24   \n});\n\ngroup.set('key', 'value').then(() => {\n    group.get('key').then((value) => {\n        console.log(value); // value\n    });\n});\n\nconst groupKey = group.key('key');\n\nconst groupValues = group.getAll(groupKey);\n\n\n```\n\n\n### API \n - getGroup(name: string): Group  - returns the group by name\n - isGroupExists(name: string): boolean - returns true if the group exists\n - getKeys(groupKey: string): Promise<string[]> - returns the keys of the group\n - \n","readmeFilename":"README.md"}