{"_id":"@blastz/redis-busy-box","_rev":"2-ff373b2e7d5c152a3ddd4989d5f13701","name":"@blastz/redis-busy-box","dist-tags":{"latest":"0.3.0"},"versions":{"0.1.0":{"name":"@blastz/redis-busy-box","version":"0.1.0","description":"redis busy box","type":"module","main":"./cjs/index.js","exports":{"types":"./index.d.ts","require":"./cjs/index.js","import":"./esm/index.js"},"types":"./index.d.ts","bin":{"rbb":"cjs/index.js"},"homepage":"https://github.com/blastZ/pkg-universe/tree/master/packages/redis-busy-box","repository":{"type":"git","url":"git+https://github.com/blastZ/pkg-universe.git"},"author":{"name":"blastz"},"license":"MIT","dependencies":{"chalk":"^5.2.0","commander":"^10.0.1","inquirer":"^9.2.11","ioredis":"^5.3.2","zx":"^7.2.1"},"gitHead":"16b9058501e52f10ad069552ddfc5ed6fd1f8e9c","bugs":{"url":"https://github.com/blastZ/pkg-universe/issues"},"_id":"@blastz/redis-busy-box@0.1.0","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-5ay3WBoc1h0S5dIktmWKDmgT1PGIKOkTOZp+BDgc2O533WdZQ3kI4cRRtQQYiLrE2eb8tbDNxFCCvxMZM9AEWQ==","shasum":"5d929788ac3ca54ee3764bc5ef1feec22c09cbd9","tarball":"https://registry.npmjs.org/@blastz/redis-busy-box/-/redis-busy-box-0.1.0.tgz","fileCount":6,"unpackedSize":4365,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICM2yB4kpdI44SIBm1naxzhflWmxtciApytrA7PueNvnAiAZBVkVe5kCIjJk+K7IcX/pwvYnOeOt8Hcqg+tbVpxwrA=="}]},"_npmUser":{"name":"blastz","email":"touchzh1996@outlook.com"},"directories":{},"maintainers":[{"name":"blastz","email":"touchzh1996@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redis-busy-box_0.1.0_1698226422810_0.7135205317027471"},"_hasShrinkwrap":false},"0.2.0":{"name":"@blastz/redis-busy-box","version":"0.2.0","description":"redis busy box","type":"module","main":"./cjs/index.js","exports":{"types":"./index.d.ts","require":"./cjs/index.js","import":"./esm/index.js"},"types":"./index.d.ts","bin":{"rbb":"cjs/index.js"},"homepage":"https://github.com/blastZ/pkg-universe/tree/master/packages/redis-busy-box","repository":{"type":"git","url":"git+https://github.com/blastZ/pkg-universe.git"},"author":{"name":"blastz"},"license":"MIT","dependencies":{"chalk":"^5.2.0","commander":"^10.0.1","inquirer":"^9.2.11","ioredis":"^5.3.2","zx":"^7.2.1"},"gitHead":"cf5f28d4114c55cbe54e23addee968bc5a9db001","bugs":{"url":"https://github.com/blastZ/pkg-universe/issues"},"_id":"@blastz/redis-busy-box@0.2.0","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-5sC0DXSExR4fu+7un2xX2NaXTolNI1jqdoOW7KzfBmRId5PXooG3EOOwEx2LZNO5+W+cGd0noYUcayIj1QCRrQ==","shasum":"31eda423acf970887305b160db490b5ca5b6f759","tarball":"https://registry.npmjs.org/@blastz/redis-busy-box/-/redis-busy-box-0.2.0.tgz","fileCount":6,"unpackedSize":12888,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDCw6SGxgc7QZypIS0kmxmJLuwjJPXenxsF7b70ni6fZAiAbcH+qe1ObnXGs1PR4PZvCRe9vbtChUktwCZ2y+F3hxw=="}]},"_npmUser":{"name":"blastz","email":"touchzh1996@outlook.com"},"directories":{},"maintainers":[{"name":"blastz","email":"touchzh1996@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redis-busy-box_0.2.0_1698301795383_0.7150375783658438"},"_hasShrinkwrap":false},"0.3.0":{"name":"@blastz/redis-busy-box","version":"0.3.0","description":"redis busy box","type":"module","main":"./cjs/index.js","exports":{"types":"./index.d.ts","require":"./cjs/index.js","import":"./esm/index.js"},"types":"./index.d.ts","bin":{"rbb":"cjs/index.js"},"pkg":{"assets":["../package.json"],"targets":["node18-linux-x64"]},"homepage":"https://github.com/blastZ/pkg-universe/tree/master/packages/redis-busy-box","repository":{"type":"git","url":"git+https://github.com/blastZ/pkg-universe.git"},"author":{"name":"blastz"},"license":"MIT","dependencies":{"@inquirer/prompts":"^3.2.0","chalk":"^5.2.0","commander":"^10.0.1","ioredis":"^5.3.2","zx":"^7.2.1"},"gitHead":"73eb6052cabdd32a094a10de17d18b78d00793e8","bugs":{"url":"https://github.com/blastZ/pkg-universe/issues"},"_id":"@blastz/redis-busy-box@0.3.0","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-OS8s+5gJ29uFnm9eZXBC5q1wmXkuQkCoodicjhnyszcTd3Tt+NE31mRytHHvBxTe9ClXNTgxUu/Ok+nUi7lJ0g==","shasum":"299b0273c52300785ceef1316ec902ecd293a982","tarball":"https://registry.npmjs.org/@blastz/redis-busy-box/-/redis-busy-box-0.3.0.tgz","fileCount":6,"unpackedSize":17081,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCnhvok08vNTR/vQSNi/8SOu8Xy/sIluh1VuVbAzmTZ2wIhAL091mxJ/TR9u86n5C1YykM6SdmtMd7tbruGY9q9EsV7"}]},"_npmUser":{"name":"blastz","email":"touchzh1996@outlook.com"},"directories":{},"maintainers":[{"name":"blastz","email":"touchzh1996@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redis-busy-box_0.3.0_1698312328235_0.009914967717590928"},"_hasShrinkwrap":false}},"time":{"created":"2023-10-25T09:33:42.736Z","0.1.0":"2023-10-25T09:33:43.030Z","modified":"2023-10-26T09:25:28.585Z","0.2.0":"2023-10-26T06:29:55.593Z","0.3.0":"2023-10-26T09:25:28.448Z"},"maintainers":[{"name":"blastz","email":"touchzh1996@outlook.com"}],"description":"redis busy box","homepage":"https://github.com/blastZ/pkg-universe/tree/master/packages/redis-busy-box","repository":{"type":"git","url":"git+https://github.com/blastZ/pkg-universe.git"},"author":{"name":"blastz"},"bugs":{"url":"https://github.com/blastZ/pkg-universe/issues"},"license":"MIT","readme":"# Redis Busy Box\n\nRedis busy box to resolve redis problems\n\n## Installation\n\n```bash\nnpm install -g @blastz/redis-busy-box\n```\n\n## Usage\n\nGet memory usage by pattern\n\n```bash\n$ rbb memory-usage '*'\nMemory usage: 6317 bytes / 6 kb / 0 mb / 0 gb\n```\n\nGet count of keys by pattern\n\n```bash\n$ rbb count-keys '*'\nCount of keys: 14\n```\n\nList keys by pattern\n\n```bash\n$ rbb list-keys '*' --count 10 --show-values\n{ key: 'test:list', type: 'list', value: [ 'a', 'c', 'b', 'a' ] }\n{ key: 'test:string', type: 'string', value: 'a' }\n{ key: 'test:set', type: 'set', value: [ 'a', 'b', 'c' ] }\n? Continue? (Y/n)\n```\n\nExport keys by pattern\n\n```bash\n$ rbb export-keys 'app:user:*'\n```\n\nDelete keys by pattern\n\n```bash\n$ rbb delete-keys '*' --count 10 --show-values\n{\n  key: 'test:zset',\n  type: 'zset',\n  value: [ 'b', '8', 'a', '10', 'c', '12' ]\n}\n{\n  key: 'test:stream',\n  type: 'stream',\n  value: [\n    [ '1698301369557-0', [ 'name', 'a', 'age', '12' ] ],\n    [ '1698301390773-0', [ 'name', 'b', 'age', '14' ] ]\n  ]\n}\n{ key: 'test:hash', type: 'hash', value: { name: 'a', age: '12' } }\n? Delete above keys? (y/N)\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}