{"_id":"@ahmadyusri/adonis-cache","_rev":"2-58b1ce8a86241e8f0025589314e8949c","name":"@ahmadyusri/adonis-cache","dist-tags":{"latest":"2.1.4"},"versions":{"2.1.2":{"name":"@ahmadyusri/adonis-cache","version":"2.1.2","description":"Adonis Cache Package","main":"build/providers/CacheProvider","scripts":{"mrm":"mrm --preset=@adonisjs/mrm-preset","clean":"rm -rf build","compile":"npm run clean && tsc","build":"npm run compile && npm run copyfiles","pretest":"npm run lint","test":"echo ''","copyfiles":"copyfiles \"README.md\" \"templates/**/*.txt\" \"instructions.js\" \"instructions.md\" build","prepublishOnly":"npm run build","lint":"eslint . --ext=.ts --fix","format":"prettier --write .","commit":"git-cz","release":"np","version":"npm run build","sync-labels":"github-label-sync --labels ./node_modules/@adonisjs/mrm-preset/gh-labels.json AhmadYusri/adonis-cache"},"keywords":["adonis","adonisjs","cache"],"homepage":"https://github.com/ahmadyusri/adonis-cache#readme","author":{"name":"Solomon Eseme"},"license":"MIT","devDependencies":{"@adonisjs/core":"^5.7.2","@adonisjs/mrm-preset":"^2.4.0","@adonisjs/redis":"7.0.2","@adonisjs/repl":"^3.1.10","@types/node":"^13.13.52","commitizen":"^4.2.4","copyfiles":"^2.4.1","doctoc":"^2.1.0","eslint":"^8.13.0","eslint-config-prettier":"^8.5.0","eslint-plugin-adonis":"^2.1.0","eslint-plugin-prettier":"^4.0.0","github-label-sync":"^2.2.0","husky":"^6.0.0","mrm":"^2.6.2","np":"^7.6.1","prettier":"^2.0.5","reflect-metadata":"^0.1.13","ts-node":"^8.6.2","typescript":"^4.6.3"},"husky":{"hooks":{"pre-commit":"npm audit --production --json | ./node_modules/.bin/npm-audit-html && git add npm-audit.html && doctoc README.md --title='## Table of contents' && git add README.md","commit-msg":"node ./node_modules/@adonisjs/mrm-preset/validateCommit/conventional/validate.js"}},"types":"build/adonis-typings/index.d.ts","np":{"contents":".","anyBranch":false},"repository":{"type":"git","url":"git+https://github.com/ahmadyusri/adonis-cache.git"},"bugs":{"url":"https://github.com/ahmadyusri/adonis-cache/issues"},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"publishConfig":{"access":"public"},"eslintConfig":{"extends":["plugin:adonis/typescriptPackage","prettier"],"plugins":["prettier"],"rules":{"prettier/prettier":["error",{"endOfLine":"auto"}]}},"eslintIgnore":["build"],"prettier":{"trailingComma":"es5","semi":false,"singleQuote":true,"useTabs":false,"quoteProps":"consistent","bracketSpacing":true,"arrowParens":"always","printWidth":100},"adonisjs":{"instructions":"./build/instructions.js","instructionsMd":"./build/instructions.md","types":"@ahmadyusri/adonis-cache","providers":["@ahmadyusri/adonis-cache"],"templates":{"config":["cache.txt"],"contract":["cache.txt"]}},"peerDependencies":{"@adonisjs/core":"^5.1.1","@adonisjs/redis":"^7.0.2"},"peerDependenciesMeta":{"@adonisjs/redis":{"optional":true}},"gitHead":"78f714053288a14923e13245aa4d6789d1d8900b","_id":"@ahmadyusri/adonis-cache@2.1.2","_nodeVersion":"18.9.1","_npmVersion":"8.19.1","dist":{"integrity":"sha512-KF1euJ/Dsif44ixu+Yjk4i9fq2uChJ7VdRx7YbucLNHCzyVZg5GvO+rFDDrk6E9VeEIQ3hlb1Kvsh5XUusnnfg==","shasum":"69fa51d63306a96b14d8f3c927aa9a96f702ae51","tarball":"https://registry.npmjs.org/@ahmadyusri/adonis-cache/-/adonis-cache-2.1.2.tgz","fileCount":25,"unpackedSize":20649,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCKotJpI0Ec+IulXAXbBaIzWaINFc4zRlISPmqapcF78gIgBRAN3oXZxO8mJs9Ve6XK2+JHCvFc2eLMyKVU/OhZmTE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjX9CVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpwmg//RqZ0zcZhiYCbozNZPpMtUVcD9NgUMzJXfarb4iy5YThe7I3C\r\nlJo9dZEv9eoJ3TzfWiSRtO2zJROx8gVEaF+Wi806jqosRRsGuFwRVuWZ3W00\r\nKVY3PRP4TOnhCDvAQXhuNATCMreR5+/N79D/KQbcm2eTeej+bu1fRgwi/TTV\r\ngOhSgZYmGemlVu/411ndV8iyXbzCBSVMREO+HQYVAH5Y40f44z3bgB9wS9yX\r\nzaloawuwmcDfPWqzkxVPG4lxor8UcrTigejdgsE9ZSXREzHfA7yoAZ9kU1JE\r\n7xyAR8ohg0um9ykB8c/VU9ZME4ZzE3ArUBDXX1Hs9g+8dOoSS/2/NQ0SNpTE\r\n0i7ikZX6KXfKbADpE6YhH+p4J83GbTWQejfQyYQcRauucyiMr91FyPujiHE4\r\nv9VaXDSOoqHtkOIroS8Opj6Nk2Bd4vXBIcBsz0OkYgi7S/f/XsR3zqjWL6Cf\r\nYrf3E1EDPcDbxrdtajGfqv3v9YtvHhyl9KodL12EnyKNWx0KqQU+GpNwVap+\r\nKIxjSagdgHTb6DG8Z2ImPjxKafA7G7sECiWRuwg51Z6cNPNwLFvcyv4t/hdk\r\nhNnt3Gpe8+7Mz6HTdBT2ZdcLzPgvAknDjxsLCYZ5ZxO1dP3Ij3iZDP1ycc/L\r\nyiE0fTIfQ9sqfpIULQ0qXv7HQqLe1XEvxEc=\r\n=GTe7\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ahmadyusri","email":"yusriahmad2@gmail.com"},"directories":{},"maintainers":[{"name":"ahmadyusri","email":"yusriahmad2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/adonis-cache_2.1.2_1667223700906_0.9147951749097969"},"_hasShrinkwrap":false},"2.1.3":{"name":"@ahmadyusri/adonis-cache","version":"2.1.3","description":"Adonis Cache Package","main":"build/providers/CacheProvider","scripts":{"mrm":"mrm --preset=@adonisjs/mrm-preset","clean":"rm -rf build","compile":"npm run clean && tsc","build":"npm run compile && npm run copyfiles","pretest":"npm run lint","test":"echo ''","copyfiles":"copyfiles \"README.md\" \"templates/**/*.txt\" \"instructions.js\" \"instructions.md\" build","prepublishOnly":"npm run build","lint":"eslint . --ext=.ts --fix","format":"prettier --write .","commit":"git-cz","release":"np","version":"npm run build","sync-labels":"github-label-sync --labels ./node_modules/@adonisjs/mrm-preset/gh-labels.json AhmadYusri/adonis-cache"},"keywords":["adonis","adonisjs","cache"],"homepage":"https://github.com/ahmadyusri/adonis-cache#readme","author":{"name":"Solomon Eseme"},"license":"MIT","devDependencies":{"@adonisjs/core":"^5.7.2","@adonisjs/mrm-preset":"^2.4.0","@adonisjs/redis":"7.0.2","@adonisjs/repl":"^3.1.10","@types/node":"^13.13.52","commitizen":"^4.2.4","copyfiles":"^2.4.1","doctoc":"^2.1.0","eslint":"^8.13.0","eslint-config-prettier":"^8.5.0","eslint-plugin-adonis":"^2.1.0","eslint-plugin-prettier":"^4.0.0","github-label-sync":"^2.2.0","husky":"^6.0.0","mrm":"^2.6.2","np":"^7.6.1","prettier":"^2.0.5","reflect-metadata":"^0.1.13","ts-node":"^8.6.2","typescript":"^4.6.3"},"husky":{"hooks":{"pre-commit":"npm audit --production --json | ./node_modules/.bin/npm-audit-html && git add npm-audit.html && doctoc README.md --title='## Table of contents' && git add README.md","commit-msg":"node ./node_modules/@adonisjs/mrm-preset/validateCommit/conventional/validate.js"}},"types":"build/adonis-typings/index.d.ts","np":{"contents":".","anyBranch":false},"repository":{"type":"git","url":"git+https://github.com/ahmadyusri/adonis-cache.git"},"bugs":{"url":"https://github.com/ahmadyusri/adonis-cache/issues"},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"publishConfig":{"access":"public"},"eslintConfig":{"extends":["plugin:adonis/typescriptPackage","prettier"],"plugins":["prettier"],"rules":{"prettier/prettier":["error",{"endOfLine":"auto"}]}},"eslintIgnore":["build"],"prettier":{"trailingComma":"es5","semi":false,"singleQuote":true,"useTabs":false,"quoteProps":"consistent","bracketSpacing":true,"arrowParens":"always","printWidth":100},"adonisjs":{"instructions":"./build/instructions.js","instructionsMd":"./build/instructions.md","types":"@ahmadyusri/adonis-cache","providers":["@ahmadyusri/adonis-cache"],"templates":{"config":["cache.txt"]}},"peerDependencies":{"@adonisjs/core":"^5.1.1","@adonisjs/redis":"^7.0.2"},"peerDependenciesMeta":{"@adonisjs/redis":{"optional":true}},"gitHead":"78f714053288a14923e13245aa4d6789d1d8900b","_id":"@ahmadyusri/adonis-cache@2.1.3","_nodeVersion":"18.9.1","_npmVersion":"8.19.1","dist":{"integrity":"sha512-q2U166mBQnHsNNR25c4fxBshr/CLLx7GZ6q2i0xoeM2pRMjkKfGNQX8GywKkcB8Kj3c1eQKfCYJJlqCxQIfTfg==","shasum":"79cb5dcc86018a25a3c238c125194444d2043e5e","tarball":"https://registry.npmjs.org/@ahmadyusri/adonis-cache/-/adonis-cache-2.1.3.tgz","fileCount":24,"unpackedSize":19061,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGmrBb93YJkSFNKGuHhr5dwDwWMnlZeIvCym+SAsYgybAiEAurISP1EAOZGe/6FG2yAE+YLkudtDIwVahZpWObC1LqA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjX9PwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoDlA/+J8Lfq38eqruKBlEbqqcXx+6I0dU9wPlJs7ToOfnRQi17raVr\r\nFnksUif7ZyCaYp19sGXLJZBnfQXOVikcf0s5rmEvuGyXw3sNKB6TR2cSFask\r\nPyQonxuzlUm8bgEGpbIipQj2dlYmXiKJwuaQuI7uc3kDdTz+1x7yKXx07dxE\r\nZECDxKvDhDSjyxvhpSqMRMENXxuzsyAiOxHzaBi9rsSytqO9ErImJMMqahnA\r\nAGA9bZ7Yof/WW8AE9tQc19HFm6Xe973q1ih+vHoOaD5k/8IZbjYneXMHnLEP\r\nNIIFG1iTf07OAmjSUwJlHgutnX1vJDxtUddI7Crmh4GopWzYHXgwEC985N4e\r\nueWCmCDKqVdVRJyArGJUYLjJfy65XyvPyVB9lIuRpW5c3RdsaAvL59VCWUWz\r\nxbXqSDMW2kQthfkoeFcLmVvNf6lkmKoPJs3M8rB9kooEs6x10nVMZ+D2RlIe\r\nFv8lu4mL422aH8WsOhfdLghl081k6LHgv6lUneD+ktD4l5J8UJ0SPILsnYp5\r\nyTkKgyeax5GwkNuaWDbsoIP0QTfQt+0bY5bMjFhOa0ecPZaUSY/hg1ZB61T8\r\nNR5r2yUha1lvtD4z99MoJvrdCTJOmKsoMAGyCHvaBCovWFyGNxclWnrq5dlo\r\n9ZxhfraXG2465jw79vI90v5K1gA+Z5VK8Z4=\r\n=JiU9\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ahmadyusri","email":"yusriahmad2@gmail.com"},"directories":{},"maintainers":[{"name":"ahmadyusri","email":"yusriahmad2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/adonis-cache_2.1.3_1667224560426_0.14899485175946192"},"_hasShrinkwrap":false},"2.1.4":{"name":"@ahmadyusri/adonis-cache","version":"2.1.4","description":"Adonis Cache Package","main":"build/providers/CacheProvider","scripts":{"mrm":"mrm --preset=@adonisjs/mrm-preset","clean":"rm -rf build","compile":"npm run clean && tsc","build":"npm run compile && npm run copyfiles","pretest":"npm run lint","test":"echo ''","copyfiles":"copyfiles \"README.md\" \"templates/**/*.txt\" \"instructions.js\" \"instructions.md\" build","prepublishOnly":"npm run build","lint":"eslint . --ext=.ts --fix","format":"prettier --write .","commit":"git-cz","release":"np","version":"npm run build","sync-labels":"github-label-sync --labels ./node_modules/@adonisjs/mrm-preset/gh-labels.json AhmadYusri/adonis-cache"},"keywords":["adonis","adonisjs","cache"],"homepage":"https://github.com/ahmadyusri/adonis-cache#readme","author":{"name":"Solomon Eseme"},"license":"MIT","devDependencies":{"@adonisjs/core":"^5.7.2","@adonisjs/mrm-preset":"^2.4.0","@adonisjs/redis":"7.0.2","@adonisjs/repl":"^3.1.10","@types/node":"^13.13.52","commitizen":"^4.2.4","copyfiles":"^2.4.1","doctoc":"^2.1.0","eslint":"^8.13.0","eslint-config-prettier":"^8.5.0","eslint-plugin-adonis":"^2.1.0","eslint-plugin-prettier":"^4.0.0","github-label-sync":"^2.2.0","husky":"^6.0.0","mrm":"^2.6.2","np":"^7.6.1","prettier":"^2.0.5","reflect-metadata":"^0.1.13","ts-node":"^8.6.2","typescript":"^4.6.3"},"husky":{"hooks":{"pre-commit":"npm audit --production --json | ./node_modules/.bin/npm-audit-html && git add npm-audit.html && doctoc README.md --title='## Table of contents' && git add README.md","commit-msg":"node ./node_modules/@adonisjs/mrm-preset/validateCommit/conventional/validate.js"}},"types":"build/adonis-typings/index.d.ts","np":{"contents":".","anyBranch":false},"repository":{"type":"git","url":"git+https://github.com/ahmadyusri/adonis-cache.git"},"bugs":{"url":"https://github.com/ahmadyusri/adonis-cache/issues"},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"publishConfig":{"access":"public"},"eslintConfig":{"extends":["plugin:adonis/typescriptPackage","prettier"],"plugins":["prettier"],"rules":{"prettier/prettier":["error",{"endOfLine":"auto"}]}},"eslintIgnore":["build"],"prettier":{"trailingComma":"es5","semi":false,"singleQuote":true,"useTabs":false,"quoteProps":"consistent","bracketSpacing":true,"arrowParens":"always","printWidth":100},"adonisjs":{"instructions":"./build/instructions.js","instructionsMd":"./build/instructions.md","types":"@ahmadyusri/adonis-cache","providers":["@ahmadyusri/adonis-cache"],"templates":{"config":["cache.txt"]}},"peerDependencies":{"@adonisjs/core":"^5.1.1","@adonisjs/redis":"^7.0.2"},"peerDependenciesMeta":{"@adonisjs/redis":{"optional":true}},"gitHead":"78f714053288a14923e13245aa4d6789d1d8900b","_id":"@ahmadyusri/adonis-cache@2.1.4","_nodeVersion":"18.9.1","_npmVersion":"8.19.1","dist":{"integrity":"sha512-mDOHiQZUeM5ZUt3sS4eYM+KS2EDH8cmWN5fGmYDyk1kB2HRcBeTL6N5sSeTrn6F5RTnMDYJ5+/iitTdDA9UcMQ==","shasum":"ea54b168728f1878c3d5479e1db8cbc7a8404c8a","tarball":"https://registry.npmjs.org/@ahmadyusri/adonis-cache/-/adonis-cache-2.1.4.tgz","fileCount":24,"unpackedSize":19498,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCHg/Hmc5wRfGsEVBincB2NRHauJ1JRmz7f15CNc6ESvAIhAJ5rFu912hIlPfW+fx+Gf9DylFg2BpXd+Z/QL/UBS9RU"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjX94RACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmodYQ/5AJybyGPgXne/BI5JvXByj/37K5iLxfUhZ2JonZPeDNFNw6zR\r\nx7eLFmDUcpqbpAAOk8EWP61uGVv1b/0GXvr6J7TQlpbrKeec/CKyR4mWWpCM\r\n0ByJ2vIpe/wXbx6sJ6ihEUYXXRfKg/YcR+2h7Z3GA84L5UUK0txSlpvs4jdg\r\neqzNlkgfiYLkJ+MaM80SrZqfh4ymal0TKZywvpRAzFz2+/MYNfk7fIoGgwNm\r\nKAJiKhpSQz8byBJBf/WlZF0axMuIdY9i+OvF+lmom1HaC1j7/bzyZHj/9IO/\r\nSisEYQu5BcZYuZ9FvD9YUb+aognlW+J9q9mFF+aDiGNL/yOuY33PZVCf0kjT\r\nae224/cTVZNXH4b+8rO18QLwzuJdQbFQNAgSCLp7excvVwqbKWHHbu6bAWcs\r\n/DRqzzwpt6HSbr8bULAfdp4EgI/FAlLXfIs9gBdKqoJZ3QLVv5lxhoS+N2Ou\r\nFTqWELvnH3v7FXwggiZphKOEJ6BjiBXFi8klVG11PIZEsuvAyFJJ4xZDbBq9\r\nwRK5G7oMJmkmSswI83E9S97Nry+znguoDX4QRP36GolGMm3Y5BzlHfrXGzt4\r\no9JmFNinL1C5KRJT/MeNm4XUbZFLwx4tmh5yHRXt+pNNTOk5uG+XPLpqiwTp\r\nm6bXNAVFPeqrAiuQ6iA5f/a6J6srUkf/Msg=\r\n=42n/\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ahmadyusri","email":"yusriahmad2@gmail.com"},"directories":{},"maintainers":[{"name":"ahmadyusri","email":"yusriahmad2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/adonis-cache_2.1.4_1667227153317_0.8710844604026997"},"_hasShrinkwrap":false}},"time":{"created":"2022-10-31T13:41:40.840Z","2.1.2":"2022-10-31T13:41:41.066Z","modified":"2022-10-31T14:39:13.695Z","2.1.3":"2022-10-31T13:56:00.589Z","2.1.4":"2022-10-31T14:39:13.609Z"},"maintainers":[{"name":"ahmadyusri","email":"yusriahmad2@gmail.com"}],"description":"Adonis Cache Package","homepage":"https://github.com/ahmadyusri/adonis-cache#readme","keywords":["adonis","adonisjs","cache"],"repository":{"type":"git","url":"git+https://github.com/ahmadyusri/adonis-cache.git"},"author":{"name":"Solomon Eseme"},"bugs":{"url":"https://github.com/ahmadyusri/adonis-cache/issues"},"license":"MIT","readme":"<!-- START doctoc generated TOC please keep comment here to allow auto update -->\n<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->\n\n# Table of contents\nCostumization Package from [Kaperskyguru/adonis-cache](https://github.com/Kaperskyguru/adonis-cache)\n\n## Table of contents\n\n- [Adonis Cache](#adonis-cache)\n  - [Installation](#installation)\n  - [Usage](#usage)\n\n<!-- END doctoc generated TOC please keep comment here to allow auto update -->\n\n# Adonis Cache\n\n> Cache provider for AdonisJS 5\n\n[![typescript-image]][typescript-url] [![npm-image]][npm-url] [![license-image]][license-url]\n\nThis packages makes it seamless to implement any Caching strategy in AdonisJS 5 applications.\n\n## Installation\n\nInstall the package using either npm or yarn:\n\n```bash\nnpm i @ahmadyusri/adonis-cache\n# or\nyarn add @ahmadyusri/adonis-cache\n```\n\nThen, configure the package using the `invoke` command:\n\n```bash\nnode ace invoke @ahmadyusri/adonis-cache\n```\n\nThis package works exactly the way Laravel Cache package works with ease of use and effortless to set up.\n\n```txt\n// .env\n\nCACHE_DRIVER=redis // defaults to FILE\n\n```\n\n## Usage\n\n```ts\nimport Cache from '@ioc:AhmadYusri/Adonis-cache'\n\nlet posts = await Cache.remember('_posts_', 60, async function () {\n  return await Post.all()\n})\n```\n\n## Available Methods\n\n- **_Cache.has(name: string):_** Checks if specified name is already Cached.\n- **_Cache.get(name: string):_** Retrieves a Cached content by name.\n- **_Cache.set(name: string, data: any, duration: number):_** Cached a particular content with assigned name.\n- **_Cache.delete(name: string):_** Deletes a Cache by name.\n- **_Cache.update(name: string, data: any, duration: number):_** Updates a Cache by name.\n- **_Cache.remember(name: string, duration: number, callback: Function):_** Caches content with duration.\n- **_Cache.rememberForever(name: string, callback: Function):_** Caches content without duration.\n- **_Cache.many(keys: Array<string>):_** Retrieves all cached content specified into an array.\n- **_Cache.setMany(data: object, minutes: number):_** Caches many content mapped by name at once.\n\nCurrently adding more, have any contribution? send a PR.\n\nThis package is built as a similarity to [`laravel-cache`](https://laravel.com/docs/8.x/cache). You can learn more about the methods available there.\n\n[typescript-image]: https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge&logo=typescript\n[typescript-url]: \"typescript\"\n[npm-url]: https://www.npmjs.com/package/@kaperskyguru/adonis-cache 'npm'\n[license-url]: LICENSE.md 'license'\n","readmeFilename":"README.md"}