{"_id":"@acfatah/memory-cache","_rev":"7-29b94c28448f8d1e594f316b78b3e793","name":"@acfatah/memory-cache","dist-tags":{"latest":"0.1.13"},"versions":{"0.1.2":{"name":"@acfatah/memory-cache","version":"0.1.2","keywords":["cache","memory","in-memory","bun cache","nodejs cache","time to live","ttl","expiration"],"author":{"url":"https://github.com/acfatah","name":"Achmad F. Ibrahim","email":"acfatah@gmail.com"},"license":"MIT","_id":"@acfatah/memory-cache@0.1.2","maintainers":[{"name":"acfatah","email":"acfatah@gmail.com"}],"homepage":"https://github.com/acfatah/memory-cache","bugs":{"url":"https://github.com/acfatah/memory-cache/issues"},"dist":{"shasum":"31d88d08cfdf80c1649c5bf8ae836056b68b77c4","tarball":"https://registry.npmjs.org/@acfatah/memory-cache/-/memory-cache-0.1.2.tgz","fileCount":5,"integrity":"sha512-qPVlNx5JaSjrTyhjQ2+vXlmW7gwFYbFQRgd69f4j0lCEWhGX2M9xdtxivswyiM3/DaC6d+KmoAtkWWcI17tP2w==","signatures":[{"sig":"MEYCIQCLOLbqKSDJwXM1WESalRp3NSHkrP3/isHkRyU1bogWmAIhAN07Z/fm0yQmbgoWeneWDQZH0E1rOQ7SxDcGwiVzrrxC","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8495},"main":"./dist/index.mjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.mjs","engines":{"bun":">=1.2.18","node":">=22.0.0"},"exports":{"types":"./dist/index.d.ts","import":"./dist/index.mjs"},"gitHead":"dea37f41876972a80059d9c07e9a8bd498116017","scripts":{"lint":"bunx --bun eslint","test":"bun test","build":"bun run script/build.ts","start":"bun src/index.ts","release":"bunx --bun bumpp --excute=\"bun install\"","lint:fix":"bunx --bun eslint --fix","precommit":"bun run typecheck && bun run lint:staged","typecheck":"tsc --noEmit","test:watch":"bun test --watch","lint:staged":"bunx --bun eslint --pass-on-no-patterns --no-warn-ignored $(git diff --cached --name-only --diff-filter=d)","lint:changed":"bunx --bun eslint --pass-on-no-patterns --no-warn-ignored $(git diff --name-only --diff-filter=d HEAD)","lint:inspect":"bunx --bun eslint --inspect-config","test:coverage":"bun test --coverage --coverage-reporter=lcov","lint:fix-staged":"bunx --bun eslint --fix --pass-on-no-patterns --no-warn-ignored $(git diff --cached --name-only --diff-filter=d)","lint:commit-message":"bunx --bun commitlint --edit"},"_npmUser":{"name":"acfatah","actor":{"name":"acfatah","type":"user","email":"acfatah@gmail.com"},"email":"acfatah@gmail.com"},"repository":{"url":"git+https://github.com/acfatah/memory-cache.git","type":"git"},"_npmVersion":"10.2.0","description":"A simple in-memory cache for bun and nodejs.","directories":{},"_nodeVersion":"24.3.0","_hasShrinkwrap":false,"devDependencies":{"jiti":"^2.4.2","eslint":"^9.30.1","@types/bun":"^1.2.18","bun-plugin-dts":"^0.3.0","@commitlint/cli":"^19.8.1","simple-git-hooks":"^2.13.0","@antfu/eslint-config":"^4.16.2","eslint-plugin-format":"^1.0.1","@commitlint/config-conventional":"^19.8.1"},"simple-git-hooks":{"commit-msg":"bun lint:commit-message","pre-commit":"bun precommit"},"_npmOperationalInternal":{"tmp":"tmp/memory-cache_0.1.2_1752031157921_0.08796359118752317","host":"s3://npm-registry-packages-npm-production"}},"0.1.7":{"name":"@acfatah/memory-cache","version":"0.1.7","keywords":["cache","memory","in-memory","bun cache","nodejs cache","time to live","ttl","expiration"],"author":{"url":"https://github.com/acfatah","name":"Achmad F. Ibrahim","email":"acfatah@gmail.com"},"license":"MIT","_id":"@acfatah/memory-cache@0.1.7","maintainers":[{"name":"acfatah","email":"acfatah@gmail.com"}],"homepage":"https://github.com/acfatah/memory-cache","bugs":{"url":"https://github.com/acfatah/memory-cache/issues"},"dist":{"shasum":"e6eebaa3dd4061b6154fa9c6864d40f7cff691ff","tarball":"https://registry.npmjs.org/@acfatah/memory-cache/-/memory-cache-0.1.7.tgz","fileCount":5,"integrity":"sha512-ti63gx3J2ubnWJ1bF+WoAgYEeUWPQJENqhMkUjmfy8VKcrgiOkkYlWOKolrtZg2VgxZznlPuHRTjkKO+AaRjZA==","signatures":[{"sig":"MEUCIQCvGLcYJS2Z1+Adt6+SGdzOp4f8gF/kia/3ep8SMEl9jAIgLEofFd/7Z7wnvODisbsajX4a/U8+XirX+yV/g1qpKA0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8858},"main":"./dist/index.mjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.mjs","engines":{"bun":">=1.2.18","node":">=22.0.0"},"exports":{"types":"./dist/index.d.ts","import":"./dist/index.mjs"},"gitHead":"b3faf1a7f1cc16d43e70fc8ad3363e52e3b81769","scripts":{"test":"bun test","build":"bun run script/build.ts","start":"bun src/index.ts","format":"bunx --bun eslint --fix","publish":"npm publish --access public","release":"bunx --bun bumpp --execute=\"bun install\"","precommit":"bun run typecheck && bun run lint:staged","typecheck":"tsc --noEmit","test:watch":"bun test --watch","lint:staged":"bunx --bun eslint --pass-on-no-patterns --no-warn-ignored $(git diff --relative --cached --name-only --diff-filter=d)","lint:changed":"{ git diff --name-only -z --diff-filter=d --relative HEAD; git ls-files -z --others --exclude-standard -- ':./'; } | xargs -0 -r bunx --bun eslint --pass-on-no-patterns --no-warn-ignored","lint:inspect":"bunx --bun eslint --inspect-config","format:staged":"staged_files=$(git diff --relative --cached --name-only --diff-filter=d); bunx --bun eslint --fix --pass-on-no-patterns --no-warn-ignored $staged_files && git add $staged_files","test:coverage":"bun test --coverage --coverage-reporter=lcov","format:changed":"{ git diff --name-only -z --diff-filter=d --relative HEAD; git ls-files -z --others --exclude-standard -- ':./'; } | xargs -0 -r bunx --bun eslint --fix --no-warn-ignored","lint:commit-message":"bunx --bun commitlint --edit"},"_npmUser":{"name":"acfatah","email":"acfatah@gmail.com"},"repository":{"url":"git+https://github.com/acfatah/memory-cache.git","type":"git"},"_npmVersion":"10.9.3","description":"A simple in-memory cache for bun and nodejs.","directories":{},"_nodeVersion":"22.19.0","_hasShrinkwrap":false,"devDependencies":{"jiti":"^2.6.1","eslint":"^9.39.1","@types/bun":"^1.3.3","bun-plugin-dts":"^0.3.0","@commitlint/cli":"^20.1.0","simple-git-hooks":"^2.13.1","@antfu/eslint-config":"^6.2.0","eslint-plugin-format":"^1.0.2","@commitlint/config-conventional":"^20.0.0"},"simple-git-hooks":{"commit-msg":"bun lint:commit-message","pre-commit":"bun precommit"},"_npmOperationalInternal":{"tmp":"tmp/memory-cache_0.1.7_1764034061349_0.8893706716127234","host":"s3://npm-registry-packages-npm-production"}},"0.1.8":{"name":"@acfatah/memory-cache","version":"0.1.8","keywords":["cache","memory","in-memory","bun cache","nodejs cache","time to live","ttl","expiration"],"author":{"url":"https://github.com/acfatah","name":"Achmad F. Ibrahim","email":"acfatah@gmail.com"},"license":"MIT","_id":"@acfatah/memory-cache@0.1.8","maintainers":[{"name":"acfatah","email":"acfatah@gmail.com"}],"homepage":"https://github.com/acfatah/memory-cache","bugs":{"url":"https://github.com/acfatah/memory-cache/issues"},"dist":{"shasum":"cfd0370314370840974109a6e9a0779cba2483d0","tarball":"https://registry.npmjs.org/@acfatah/memory-cache/-/memory-cache-0.1.8.tgz","fileCount":5,"integrity":"sha512-EmBw/ljp2Cv5s7KQVWmrdq+SOE/fM9ofViZ+DoYmuiy3+zIxOqAI9mYOUgJAxXgz6YrbTkhYg3IPKFIjMoOycA==","signatures":[{"sig":"MEQCIG1PUigR4Qhjp3O5XXuV+SAoxRBAgpYS89ULw1mton0sAiAPMYZTDM7xvwxHRSSXtGLvbG70IABSV0gShuXWUAcG1Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8985},"main":"./dist/index.mjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.mjs","engines":{"bun":">=1.2.18","node":">=22.0.0"},"exports":{"types":"./dist/index.d.ts","import":"./dist/index.mjs"},"gitHead":"e137857a5d2e810d9b185b827a9f801739edd4fb","scripts":{"lint":"bunx --bun eslint","test":"bun test","build":"bun --version > .bun-version && bun run script/build.ts","start":"bun src/index.ts","format":"bunx --bun eslint --fix","prepare":"bun run build","publish":"npm publish --access public","release":"bunx --bun bumpp --execute=\"bun install\"","precommit":"bun run typecheck && bun run lint:staged","typecheck":"tsc --noEmit","test:watch":"bun test --watch","lint:staged":"bunx --bun eslint --pass-on-no-patterns --no-warn-ignored $(git diff --relative --cached --name-only --diff-filter=d)","lint:changed":"{ git diff --name-only -z --diff-filter=d --relative HEAD; git ls-files -z --others --exclude-standard -- ':./'; } | xargs -0 -r bunx --bun eslint --pass-on-no-patterns --no-warn-ignored","lint:inspect":"bunx --bun eslint --inspect-config","format:staged":"staged_files=$(git diff --relative --cached --name-only --diff-filter=d); bunx --bun eslint --fix --pass-on-no-patterns --no-warn-ignored $staged_files && git add $staged_files","test:coverage":"bun test --coverage --coverage-reporter=lcov","format:changed":"{ git diff --name-only -z --diff-filter=d --relative HEAD; git ls-files -z --others --exclude-standard -- ':./'; } | xargs -0 -r bunx --bun eslint --fix --no-warn-ignored","lint:commit-message":"bunx --bun commitlint --edit"},"_npmUser":{"name":"acfatah","email":"acfatah@gmail.com"},"repository":{"url":"git+https://github.com/acfatah/memory-cache.git","type":"git"},"_npmVersion":"10.9.3","description":"A simple in-memory cache for bun and nodejs.","directories":{},"_nodeVersion":"22.19.0","_hasShrinkwrap":false,"devDependencies":{"jiti":"^2.6.1","eslint":"^9.39.2","@types/bun":"^1.3.5","@types/node":"^22.9.4","bun-plugin-dts":"^0.3.0","@commitlint/cli":"^20.2.0","simple-git-hooks":"^2.13.1","@antfu/eslint-config":"^6.7.1","eslint-plugin-format":"^1.1.0","@commitlint/config-conventional":"^20.2.0"},"simple-git-hooks":{"commit-msg":"bun lint:commit-message","pre-commit":"bun precommit"},"_npmOperationalInternal":{"tmp":"tmp/memory-cache_0.1.8_1766109253351_0.2731623058660011","host":"s3://npm-registry-packages-npm-production"}},"0.1.9":{"name":"@acfatah/memory-cache","version":"0.1.9","keywords":["cache","memory","in-memory","bun cache","nodejs cache","time to live","ttl","expiration"],"author":{"url":"https://github.com/acfatah","name":"Achmad F. Ibrahim","email":"acfatah@gmail.com"},"license":"MIT","_id":"@acfatah/memory-cache@0.1.9","maintainers":[{"name":"acfatah","email":"acfatah@gmail.com"}],"homepage":"https://github.com/acfatah/memory-cache","bugs":"https://github.com/acfatah/memory-cache/issues","dist":{"shasum":"362f5b868101fde93c9e459fd29cd29f162cc3e1","tarball":"https://registry.npmjs.org/@acfatah/memory-cache/-/memory-cache-0.1.9.tgz","fileCount":5,"integrity":"sha512-AADveHkTysdp2ZKtbISMeoCxsXOSOBZoTcNoCv0+MSZ5V/ireHggwVXxFjz19aVaVjaGlZPeaeNnN/9hVpYasg==","signatures":[{"sig":"MEQCIGFKnjQGb3IykngBErLB98nkV5lsGdQAimRWJaM7DknwAiAJVcB/c8IKS9kSv/eUK1TO+e1VfAMkxrjRvbqfpshthw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9095},"main":"./dist/index.mjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.mjs","shasum":"362f5b868101fde93c9e459fd29cd29f162cc3e1","engines":{"bun":">=1.2.18","node":">=22.0.0"},"exports":{"types":"./dist/index.d.ts","import":"./dist/index.mjs"},"scripts":{"lint":"bunx --bun eslint","test":"bun test","build":"bun --version > .bun-version && bun install && bun run scripts/build.ts","start":"bun src/index.ts","format":"bunx --bun eslint --fix","release":"bun run build && bunx --bun bumpp","precommit":"bun run typecheck && bun run lint:staged","typecheck":"tsc --noEmit","test:watch":"bun test --watch","lint:staged":"bunx --bun eslint --pass-on-no-patterns --no-warn-ignored $(git diff --relative --cached --name-only --diff-filter=d)","lint:changed":"{ git diff --name-only -z --diff-filter=d --relative HEAD; git ls-files -z --others --exclude-standard -- ':./'; } | xargs -0 -r bunx --bun eslint --pass-on-no-patterns --no-warn-ignored","lint:inspect":"bunx --bun eslint --inspect-config","format:staged":"staged_files=$(git diff --relative --cached --name-only --diff-filter=d); bunx --bun eslint --fix --pass-on-no-patterns --no-warn-ignored $staged_files && git add $staged_files","test:coverage":"bun test --coverage --coverage-reporter=lcov","format:changed":"{ git diff --name-only -z --diff-filter=d --relative HEAD; git ls-files -z --others --exclude-standard -- ':./'; } | xargs -0 -r bunx --bun eslint --fix --no-warn-ignored","lint:commit-message":"bunx --bun commitlint --edit"},"_npmUser":{"name":"acfatah","email":"acfatah@gmail.com"},"_integrity":"sha512-AADveHkTysdp2ZKtbISMeoCxsXOSOBZoTcNoCv0+MSZ5V/ireHggwVXxFjz19aVaVjaGlZPeaeNnN/9hVpYasg==","repository":{"url":"https://github.com/acfatah/memory-cache.git","type":"git"},"_npmVersion":"10.8.3","description":"A simple in-memory cache for bun and nodejs.","directories":{},"_nodeVersion":"24.3.0","_hasShrinkwrap":false,"devDependencies":{"jiti":"^2.6.1","eslint":"^9.39.2","@types/bun":"^1.3.5","@types/node":"^25.0.3","bun-plugin-dts":"^0.3.0","@commitlint/cli":"^20.2.0","simple-git-hooks":"^2.13.1","@antfu/eslint-config":"^6.7.1","eslint-plugin-format":"^1.1.0","@commitlint/config-conventional":"^20.2.0"},"simple-git-hooks":{"commit-msg":"bun lint:commit-message","pre-commit":"bun precommit"},"_npmOperationalInternal":{"tmp":"tmp/memory-cache_0.1.9_1766396918646_0.18004741741107955","host":"s3://npm-registry-packages-npm-production"}},"0.1.10":{"name":"@acfatah/memory-cache","version":"0.1.10","keywords":["cache","memory","in-memory","bun cache","nodejs cache","time to live","ttl","expiration"],"author":{"url":"https://github.com/acfatah","name":"Achmad F. Ibrahim","email":"acfatah@gmail.com"},"license":"MIT","_id":"@acfatah/memory-cache@0.1.10","maintainers":[{"name":"acfatah","email":"acfatah@gmail.com"}],"homepage":"https://github.com/acfatah/memory-cache","bugs":"https://github.com/acfatah/memory-cache/issues","dist":{"shasum":"d3e6fa2f07b86d9884a05c11210c1b3da91f970f","tarball":"https://registry.npmjs.org/@acfatah/memory-cache/-/memory-cache-0.1.10.tgz","fileCount":5,"integrity":"sha512-PCe30FGDxja7FBUZwyfSg3ztxN9UyTlSiGD0svTnaKTBFtVHiyIMN2XiCYoF6ox2e0CXNZW66W09HEm1zZE4rg==","signatures":[{"sig":"MEUCIHKvCQ0ggmNFsoOMu3ucUWZSBvLYaYVwurepd0AMjLpDAiEAjd+vrBfswhGWvVlXINWH4vUcDsx02WMZtkDEiu26Zzc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9065},"main":"./dist/index.mjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.mjs","shasum":"d3e6fa2f07b86d9884a05c11210c1b3da91f970f","engines":{"bun":">=1.2.18","node":">=22.0.0"},"exports":{"types":"./dist/index.d.ts","import":"./dist/index.mjs"},"scripts":{"lint":"bunx --bun eslint","test":"bun test","build":"bun --version > .bun-version && bun install && bun run scripts/build.ts","format":"bunx --bun eslint --fix","release":"bun run build && bunx --bun bumpp","precommit":"bun run typecheck && bun run lint:staged","typecheck":"tsc --noEmit","test:watch":"bun test --watch","lint:staged":"bunx --bun eslint --pass-on-no-patterns --no-warn-ignored $(git diff --relative --cached --name-only --diff-filter=d)","lint:changed":"{ git diff --name-only -z --diff-filter=d --relative HEAD; git ls-files -z --others --exclude-standard -- ':./'; } | xargs -0 -r bunx --bun eslint --pass-on-no-patterns --no-warn-ignored","lint:inspect":"bunx --bun eslint --inspect-config","format:staged":"staged_files=$(git diff --relative --cached --name-only --diff-filter=d); bunx --bun eslint --fix --pass-on-no-patterns --no-warn-ignored $staged_files && git add $staged_files","test:coverage":"bun test --coverage --coverage-reporter=lcov","format:changed":"{ git diff --name-only -z --diff-filter=d --relative HEAD; git ls-files -z --others --exclude-standard -- ':./'; } | xargs -0 -r bunx --bun eslint --fix --no-warn-ignored","lint:commit-message":"bunx --bun commitlint --edit"},"_npmUser":{"name":"acfatah","email":"acfatah@gmail.com"},"_integrity":"sha512-PCe30FGDxja7FBUZwyfSg3ztxN9UyTlSiGD0svTnaKTBFtVHiyIMN2XiCYoF6ox2e0CXNZW66W09HEm1zZE4rg==","repository":{"url":"https://github.com/acfatah/memory-cache.git","type":"git"},"_npmVersion":"10.8.3","description":"A simple in-memory cache for bun and nodejs.","directories":{},"_nodeVersion":"24.3.0","_hasShrinkwrap":false,"devDependencies":{"jiti":"^2.6.1","eslint":"^9.39.2","@types/bun":"^1.3.5","@types/node":"^25.0.3","bun-plugin-dts":"^0.3.0","@commitlint/cli":"^20.2.0","simple-git-hooks":"^2.13.1","eslint-plugin-format":"^1.1.0","@acfatah/eslint-preset":"^1.3.3","@commitlint/config-conventional":"^20.2.0"},"simple-git-hooks":{"commit-msg":"bun lint:commit-message","pre-commit":"bun precommit"},"_npmOperationalInternal":{"tmp":"tmp/memory-cache_0.1.10_1766965728865_0.0822659830086514","host":"s3://npm-registry-packages-npm-production"}},"0.1.11":{"name":"@acfatah/memory-cache","version":"0.1.11","keywords":["cache","memory","in-memory","bun cache","nodejs cache","time to live","ttl","expiration"],"author":{"url":"https://github.com/acfatah","name":"Achmad F. Ibrahim","email":"acfatah@gmail.com"},"license":"MIT","_id":"@acfatah/memory-cache@0.1.11","maintainers":[{"name":"acfatah","email":"acfatah@gmail.com"}],"homepage":"https://github.com/acfatah/memory-cache","bugs":"https://github.com/acfatah/memory-cache/issues","dist":{"shasum":"f89087257ed19f024ae5c35d00408490caba24fb","tarball":"https://registry.npmjs.org/@acfatah/memory-cache/-/memory-cache-0.1.11.tgz","fileCount":5,"integrity":"sha512-97x2onURdn78s+BY6UnRA0iuTI56Pm/+piaL/A+yIrBThLe4SUVQH8sJoW2DmZPsFC+T0Fr9zfUr5Jmca/ouSw==","signatures":[{"sig":"MEYCIQCMF528kYgYn8pUV+fx3lYMqj+3EmjNTv31DFnxLJYs3wIhAPWSR+st11b/qPf//o4H4iZhXjS+otrH3iYYFPPY/z+P","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9065},"main":"./dist/index.mjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.mjs","shasum":"f89087257ed19f024ae5c35d00408490caba24fb","engines":{"bun":">=1.2.18","node":">=22.0.0"},"exports":{"types":"./dist/index.d.ts","import":"./dist/index.mjs"},"scripts":{"lint":"bunx --bun eslint","test":"bun test","build":"bun --version > .bun-version && bun install && bun run scripts/build.ts","format":"bunx --bun eslint --fix","release":"bun run build && bunx --bun bumpp","precommit":"bun run typecheck && bun run lint:staged","typecheck":"tsc --noEmit","test:watch":"bun test --watch","lint:staged":"bunx --bun eslint --pass-on-no-patterns --no-warn-ignored $(git diff --relative --cached --name-only --diff-filter=d)","lint:changed":"{ git diff --name-only -z --diff-filter=d --relative HEAD; git ls-files -z --others --exclude-standard -- ':./'; } | xargs -0 -r bunx --bun eslint --pass-on-no-patterns --no-warn-ignored","lint:inspect":"bunx --bun eslint --inspect-config","format:staged":"staged_files=$(git diff --relative --cached --name-only --diff-filter=d); bunx --bun eslint --fix --pass-on-no-patterns --no-warn-ignored $staged_files && git add $staged_files","test:coverage":"bun test --coverage --coverage-reporter=lcov","format:changed":"{ git diff --name-only -z --diff-filter=d --relative HEAD; git ls-files -z --others --exclude-standard -- ':./'; } | xargs -0 -r bunx --bun eslint --fix --no-warn-ignored","lint:commit-message":"bunx --bun commitlint --edit"},"_npmUser":{"name":"acfatah","email":"acfatah@gmail.com"},"_integrity":"sha512-97x2onURdn78s+BY6UnRA0iuTI56Pm/+piaL/A+yIrBThLe4SUVQH8sJoW2DmZPsFC+T0Fr9zfUr5Jmca/ouSw==","repository":{"url":"https://github.com/acfatah/memory-cache.git","type":"git"},"_npmVersion":"10.8.3","description":"A simple in-memory cache for bun and nodejs.","directories":{},"_nodeVersion":"24.3.0","_hasShrinkwrap":false,"devDependencies":{"jiti":"^2.6.1","eslint":"^10.0.1","@types/bun":"^1.3.9","@types/node":"^25.3.0","bun-plugin-dts":"^0.4.0","@commitlint/cli":"^20.4.2","simple-git-hooks":"^2.13.1","eslint-plugin-format":"^1.4.0","@acfatah/eslint-preset":"^4.0.3","@commitlint/config-conventional":"^20.4.2"},"simple-git-hooks":{"commit-msg":"bun lint:commit-message","pre-commit":"bun precommit"},"_npmOperationalInternal":{"tmp":"tmp/memory-cache_0.1.11_1771810141702_0.5329234102419464","host":"s3://npm-registry-packages-npm-production"}},"0.1.13":{"name":"@acfatah/memory-cache","type":"module","version":"0.1.13","description":"A simple in-memory cache for bun and nodejs.","author":{"name":"Achmad F. Ibrahim","email":"acfatah@gmail.com","url":"https://github.com/acfatah"},"license":"MIT","homepage":"https://github.com/acfatah/memory-cache","repository":{"type":"git","url":"https://github.com/acfatah/memory-cache.git"},"bugs":"https://github.com/acfatah/memory-cache/issues","keywords":["cache","memory","in-memory","bun cache","nodejs cache","time to live","ttl","expiration"],"exports":{"types":"./dist/index.d.ts","import":"./dist/index.mjs"},"main":"./dist/index.mjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","engines":{"bun":">=1.2.18","node":">=22.0.0"},"scripts":{"build":"bun --version > .bun-version && bun install && bun run scripts/build.ts","lint":"bunx --bun eslint","lint:changed":"{ git diff --name-only -z --diff-filter=d --relative HEAD; git ls-files -z --others --exclude-standard -- ':./'; } | xargs -0 -r bunx --bun eslint --pass-on-no-patterns --no-warn-ignored","lint:staged":"bunx --bun eslint --pass-on-no-patterns --no-warn-ignored $(git diff --relative --cached --name-only --diff-filter=d)","lint:inspect":"bunx --bun eslint --inspect-config","lint:commit-message":"bunx --bun commitlint --edit","format":"bunx --bun eslint --fix","format:changed":"{ git diff --name-only -z --diff-filter=d --relative HEAD; git ls-files -z --others --exclude-standard -- ':./'; } | xargs -0 -r bunx --bun eslint --fix --no-warn-ignored","format:staged":"staged_files=$(git diff --relative --cached --name-only --diff-filter=d); bunx --bun eslint --fix --pass-on-no-patterns --no-warn-ignored $staged_files && git add $staged_files","typecheck":"tsc --noEmit","test":"bun test","test:watch":"bun test --watch","test:coverage":"bun test --coverage --coverage-reporter=lcov","precommit":"bun run typecheck && bun run lint:staged","release":"bun run build && bunx --bun bumpp"},"devDependencies":{"@acfatah/eslint-preset":"^5.0.0","@commitlint/cli":"^21.2.0","@commitlint/config-conventional":"^21.2.0","@types/bun":"^1.3.14","@types/node":"^26.1.0","bun-plugin-dts":"^0.4.0","eslint":"^10.6.0","eslint-plugin-format":"^2.0.1","jiti":"^2.7.0","simple-git-hooks":"^2.13.1"},"simple-git-hooks":{"commit-msg":"bun lint:commit-message","pre-commit":"bun precommit"},"_id":"@acfatah/memory-cache@0.1.13","_integrity":"sha512-cB1vI2sfZDQ1Xwsr++VeDZ4BmXF34pfXJ+F7VYBa6g1S9H+hRdzqcbEnEeIrzaREiHdEtpGbT8CeUBKscjgcWQ==","_nodeVersion":"24.3.0","_npmVersion":"10.8.3","shasum":"ad1385e5d221669ebf6bfd7879426d10686e2377","dist":{"integrity":"sha512-cB1vI2sfZDQ1Xwsr++VeDZ4BmXF34pfXJ+F7VYBa6g1S9H+hRdzqcbEnEeIrzaREiHdEtpGbT8CeUBKscjgcWQ==","shasum":"ad1385e5d221669ebf6bfd7879426d10686e2377","tarball":"https://registry.npmjs.org/@acfatah/memory-cache/-/memory-cache-0.1.13.tgz","fileCount":5,"unpackedSize":9066,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDhQOBTih9oY+VhhPdjqQewLxiUIwJ3APCg821OJz5MFgIgISg47iFu+khHBQ6vL3ZGPmArhn6iaEoKheGuAI6+/YY="}]},"_npmUser":{"name":"acfatah","email":"acfatah@gmail.com"},"directories":{},"maintainers":[{"name":"acfatah","email":"acfatah@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/memory-cache_0.1.13_1783320285409_0.025554650335007034"},"_hasShrinkwrap":false}},"time":{"created":"2025-07-09T03:19:17.836Z","modified":"2026-07-06T06:44:45.629Z","0.1.2":"2025-07-09T03:19:18.094Z","0.1.7":"2025-11-25T01:27:41.572Z","0.1.8":"2025-12-19T01:54:13.517Z","0.1.9":"2025-12-22T09:48:38.819Z","0.1.10":"2025-12-28T23:48:49.043Z","0.1.11":"2026-02-23T01:29:01.849Z","0.1.13":"2026-07-06T06:44:45.522Z"},"bugs":"https://github.com/acfatah/memory-cache/issues","author":{"name":"Achmad F. Ibrahim","email":"acfatah@gmail.com","url":"https://github.com/acfatah"},"license":"MIT","homepage":"https://github.com/acfatah/memory-cache","keywords":["cache","memory","in-memory","bun cache","nodejs cache","time to live","ttl","expiration"],"repository":{"type":"git","url":"https://github.com/acfatah/memory-cache.git"},"description":"A simple in-memory cache for bun and nodejs.","maintainers":[{"name":"acfatah","email":"acfatah@gmail.com"}],"readme":"# Memory Cache\n\n<p>\n  <a href=\"https://bun.sh\">\n    <img\n      alt=\"bun.sh\"\n      src=\"https://img.shields.io/badge/Bun-%23000000.svg?style=flat-square&logo=bun&logoColor=white\"\n    ></a>\n  <a href=\"./LICENSE\">\n    <img\n      alt=\"GitHub\"\n      src=\"https://img.shields.io/github/license/acfatah/memory-cache?style=flat-square\"\n    ></a>\n  <a href=\"https://www.npmjs.com/package/@acfatah/memory-cache\">\n    <img\n      alt=\"NPM Version\"\n      src=\"https://img.shields.io/npm/v/%40acfatah%2Fmemory-cache\"\n    ></a>\n  <a href=\"https://github.com/acfatah/memory-cache/commits/main\">\n    <img\n      alt=\"GitHub last commit (by committer)\"\n      src=\"https://img.shields.io/github/last-commit/acfatah/memory-cache?display_timestamp=committer&style=flat-square\"\n    ></a>\n  <a href=\"https://qlty.sh/gh/acfatah/projects/memory-cache\">\n    <img\n      src=\"https://qlty.sh/gh/acfatah/projects/memory-cache/maintainability.svg\"\n      alt=\"Maintainability\"\n    ></a>\n  <a href=\"https://qlty.sh/gh/acfatah/projects/memory-cache\">\n    <img\n      src=\"https://qlty.sh/gh/acfatah/projects/memory-cache/coverage.svg\"\n      alt=\"Code Coverage\"\n      ></a>\n</p>\n\nA simple in-memory cache for bun and nodejs.\n\n## Features\n\n- No dependencies.\n- Uses [`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) instead of plain object.\n- Purges expired cache in an interval.\n- Optional cache schema type inference.\n\n## Usage\n\n```typescript\nimport { useMemoryCache } from '@acfatah/memory-cache'\n\nconst { set, get, remove, keys, clear } = useMemoryCache({\n  // Default expiration value is 5 minutes if not provided.\n  ttl: 15 * 60 * 1000\n})\n\n// ...\n\nset('cache-key', value)\n```\n\nTo set, get and remove cache,\n\n```typescript\n// Set custom expiration\nset('cache-key', value, { ttl: 5 * 60 * 1000 })\n\n// Set a value with no expiration\nset('cache-key', value, { ttl: null })\n\n// or\nset('cache-key', value, { ttl: Infinity })\n\n// get a cache value\nconst value = get('cache-key')\n\n// remove a cache value\nremove('cache-key')\n\n// or\nset('cache-key', undefined)\n\n// list all available keys\nkeys()\n\n// clear all cache\nclear()\n```\n\nBy default, the purge interval is set to 1 minute. To change it, use the `setPurgeTimeout` method. Note that this will affect all caches globally.\n\nTo cache schema type inference,\n\n```typescript\nconst { get, set, keys } = useMemoryCache<{\n  'cache-key-1': number\n  'cache-key-2': string\n  'cache-key-3': { foo: string }\n}>()\n```\n\n`get` method will infer all available keys and their types based on the cache schema.\n","readmeFilename":"README.md"}