{"versions":{"1.0.0":{"name":"@cacheable/utils","version":"1.0.0","description":"Cacheable Utilities for Caching Libraries","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.js"}},"repository":{"type":"git","url":"git+https://github.com/jaredwray/cacheable.git","directory":"packages/utils"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","private":false,"devDependencies":{"@faker-js/faker":"^9.9.0","@keyv/redis":"^5.0.0","@keyv/valkey":"^1.0.7","@types/eslint":"^9.6.1","@types/node":"^24.1.0","@vitest/coverage-v8":"^3.2.4","lru-cache":"^11.1.0","rimraf":"^6.0.1","tsup":"^8.5.0","typescript":"^5.8.3","vitest":"^3.2.4","xo":"^1.2.1"},"keywords":["cacheable","caching","utilities","hashing","keyv","cache utils"],"scripts":{"build":"rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean","prepublish":"pnpm build","test":"xo --fix && vitest run --coverage","test:ci":"xo && vitest run --coverage","clean":"rimraf ./dist ./coverage ./node_modules"},"_id":"@cacheable/utils@1.0.0","bugs":{"url":"https://github.com/jaredwray/cacheable/issues"},"homepage":"https://github.com/jaredwray/cacheable#readme","_integrity":"sha512-zhvGyJ1dKYhb72bPNrZyUcgRFAkhI5EhFyYFBBoszq327IYct/Np/8jh7zJBRdFrwF5HTiSVMacEKWg3Jbm5Yw==","_resolved":"/private/var/folders/q4/x95kq1ln6cd7rrnct9cby32r0000gn/T/10ce4ef5ffa8d433ec49a717dbbc1af0/cacheable-utils-1.0.0.tgz","_from":"file:cacheable-utils-1.0.0.tgz","_nodeVersion":"22.12.0","_npmVersion":"11.4.2","dist":{"integrity":"sha512-zhvGyJ1dKYhb72bPNrZyUcgRFAkhI5EhFyYFBBoszq327IYct/Np/8jh7zJBRdFrwF5HTiSVMacEKWg3Jbm5Yw==","shasum":"841debda3ed2d4ab8a56ce36874f3155c25edacb","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@cacheable/utils/-/utils-1.0.0.tgz","fileCount":7,"unpackedSize":44785,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDFDSCg841LRQNrfbFqtcQPHcP8WwJrJxUK5Fyanx11pAiAqdEeXWKoZ7Eb7eMnjdXdgKHT4fIXTiJ6Wcsy/Wesg3w=="}],"size":8572},"_npmUser":{"name":"anonymous","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/utils_1.0.0_1753418756717_0.97514964993953"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-07-25T04:45:56.960Z","publish_time":1753418756960,"_source_registry_name":"default","contributors":[]},"1.1.0":{"name":"@cacheable/utils","version":"1.1.0","description":"Cacheable Utilities for Caching Libraries","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.js"}},"repository":{"type":"git","url":"git+https://github.com/jaredwray/cacheable.git","directory":"packages/utils"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","private":false,"devDependencies":{"@faker-js/faker":"^9.9.0","@keyv/redis":"^5.0.0","@keyv/valkey":"^1.0.7","@types/eslint":"^9.6.1","@types/node":"^24.1.0","@vitest/coverage-v8":"^3.2.4","lru-cache":"^11.1.0","rimraf":"^6.0.1","tsup":"^8.5.0","typescript":"^5.8.3","vitest":"^3.2.4","xo":"^1.2.1"},"keywords":["cacheable","caching","utilities","hashing","keyv","cache utils"],"scripts":{"build":"rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean","prepublish":"pnpm build","test":"xo --fix && vitest run --coverage","test:ci":"xo && vitest run --coverage","clean":"rimraf ./dist ./coverage ./node_modules"},"_id":"@cacheable/utils@1.1.0","bugs":{"url":"https://github.com/jaredwray/cacheable/issues"},"homepage":"https://github.com/jaredwray/cacheable#readme","_integrity":"sha512-5EYIHSQy8S02Z8tuvfNWGZcgnPrkMF++LjqyFGOG85CSrf/kEB6hCH3F2TVN1LrlkiUk+hviXunDwsCVmwZNxg==","_resolved":"/private/var/folders/q4/x95kq1ln6cd7rrnct9cby32r0000gn/T/4926c8c7f2c20b5592207eb644ed6c8e/cacheable-utils-1.1.0.tgz","_from":"file:cacheable-utils-1.1.0.tgz","_nodeVersion":"22.12.0","_npmVersion":"11.4.2","dist":{"integrity":"sha512-5EYIHSQy8S02Z8tuvfNWGZcgnPrkMF++LjqyFGOG85CSrf/kEB6hCH3F2TVN1LrlkiUk+hviXunDwsCVmwZNxg==","shasum":"074fa3d85f072be4e56187ae6383f21b147779e8","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@cacheable/utils/-/utils-1.1.0.tgz","fileCount":7,"unpackedSize":45222,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCICVTcdt4nHPARUw19zjTKGUMA0wsqX32Qv3gqXTpN40/AiEA4/NC7DXA9lEXWpVsGlVpHIOCMtVl4QP5soSBGhDoa8Q="}],"size":8615},"_npmUser":{"name":"anonymous","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/utils_1.1.0_1753931672130_0.4074764019517554"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-07-31T03:14:32.407Z","publish_time":1753931672407,"_source_registry_name":"default","contributors":[]},"1.1.1":{"name":"@cacheable/utils","version":"1.1.1","description":"Cacheable Utilities for Caching Libraries","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.js"}},"repository":{"type":"git","url":"git+https://github.com/jaredwray/cacheable.git","directory":"packages/utils"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","private":false,"devDependencies":{"@biomejs/biome":"^2.2.2","@faker-js/faker":"^10.0.0","@keyv/redis":"^5.1.1","@keyv/valkey":"^1.0.8","@types/node":"^24.3.0","@vitest/coverage-v8":"^3.2.4","lru-cache":"^11.1.0","rimraf":"^6.0.1","tsup":"^8.5.0","typescript":"^5.9.2","vitest":"^3.2.4"},"keywords":["cacheable","caching","utilities","hashing","keyv","cache utils"],"scripts":{"build":"rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean","prepublish":"pnpm build","lint":"biome check --write --error-on-warnings","test":"pnpm lint && vitest run --coverage","test:ci":"biome check --error-on-warnings && vitest run --coverage","clean":"rimraf ./dist ./coverage ./node_modules"},"_id":"@cacheable/utils@1.1.1","bugs":{"url":"https://github.com/jaredwray/cacheable/issues"},"homepage":"https://github.com/jaredwray/cacheable#readme","_integrity":"sha512-Mf738OOJY1oiVccaIsmAsQffNInAb2Oz7v1gjOSSkCZUrefyVTJRdiwBJ+uu8Q18JMrwwbdPA6XC2SeHLrhLvQ==","_resolved":"/private/var/folders/q4/x95kq1ln6cd7rrnct9cby32r0000gn/T/a1ad0674a648adab0654e0c550491d61/cacheable-utils-1.1.1.tgz","_from":"file:cacheable-utils-1.1.1.tgz","_nodeVersion":"22.12.0","_npmVersion":"11.4.2","dist":{"integrity":"sha512-Mf738OOJY1oiVccaIsmAsQffNInAb2Oz7v1gjOSSkCZUrefyVTJRdiwBJ+uu8Q18JMrwwbdPA6XC2SeHLrhLvQ==","shasum":"f77b0ac0ae1365aecf1175d3482a608272ae6809","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@cacheable/utils/-/utils-1.1.1.tgz","fileCount":7,"unpackedSize":44823,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDzY+q7aFFlt+iLNSmo+mnuOYw0k+DyCoPf9m3MU2uDzgIhAIi8x+IrhuIxJAnDtuf4xNWvdeuaqZImndGaaKIM+IUM"}],"size":8607},"_npmUser":{"name":"anonymous","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/utils_1.1.1_1756246776681_0.5049738467759095"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-08-26T22:19:36.875Z","publish_time":1756246776875,"_source_registry_name":"default","contributors":[]},"2.0.0":{"name":"@cacheable/utils","version":"2.0.0","description":"Cacheable Utilities for Caching Libraries","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.js"}},"repository":{"type":"git","url":"git+https://github.com/jaredwray/cacheable.git","directory":"packages/utils"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","private":false,"devDependencies":{"@biomejs/biome":"^2.2.2","@faker-js/faker":"^10.0.0","@keyv/redis":"^5.1.1","@keyv/valkey":"^1.0.8","@types/node":"^24.3.0","@vitest/coverage-v8":"^3.2.4","lru-cache":"^11.1.0","rimraf":"^6.0.1","tsup":"^8.5.0","typescript":"^5.9.2","vitest":"^3.2.4"},"keywords":["cacheable","caching","utilities","hashing","keyv","cache utils"],"scripts":{"build":"rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean --minify","prepublish":"pnpm build","lint":"biome check --write --error-on-warnings","test":"pnpm lint && vitest run --coverage","test:ci":"biome check --error-on-warnings && vitest run --coverage","clean":"rimraf ./dist ./coverage ./node_modules"},"_id":"@cacheable/utils@2.0.0","bugs":{"url":"https://github.com/jaredwray/cacheable/issues"},"homepage":"https://github.com/jaredwray/cacheable#readme","_integrity":"sha512-Y+ZxdxSo2ErcROjNCdButjobQDuu4mpx875uhItK6ZqW3XmDikG+YIjh30ELfOZnVFjxfpvgjz57HbYJ0m1ApQ==","_resolved":"/private/var/folders/h1/n3vxgc0n1sn5_9pxftc4p6l80000gn/T/250fc3d4a38cb29b480582bcbdc810e9/cacheable-utils-2.0.0.tgz","_from":"file:cacheable-utils-2.0.0.tgz","_nodeVersion":"20.17.0","_npmVersion":"11.4.1","dist":{"integrity":"sha512-Y+ZxdxSo2ErcROjNCdButjobQDuu4mpx875uhItK6ZqW3XmDikG+YIjh30ELfOZnVFjxfpvgjz57HbYJ0m1ApQ==","shasum":"91d9d8f34e7ce4790d44a37b57f01d1ea5093d35","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@cacheable/utils/-/utils-2.0.0.tgz","fileCount":7,"unpackedSize":40071,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDd6zyJFqS+xtLkRWP7n49KxmOuZgFHjqMyjn3ycPscnwIhAPzNDLZyPG3l7X4RZbeWZIkqqp6XiUmzIgURT/StUw1e"}],"size":9867},"_npmUser":{"name":"anonymous","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/utils_2.0.0_1757440527465_0.27365247557878947"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-09T17:55:27.648Z","publish_time":1757440527648,"_source_registry_name":"default","contributors":[]},"2.0.1":{"name":"@cacheable/utils","version":"2.0.1","description":"Cacheable Utilities for Caching Libraries","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.js"}},"repository":{"type":"git","url":"git+https://github.com/jaredwray/cacheable.git","directory":"packages/utils"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","private":false,"devDependencies":{"@biomejs/biome":"^2.2.2","@faker-js/faker":"^10.0.0","@keyv/redis":"^5.1.1","@keyv/valkey":"^1.0.8","@types/node":"^24.3.0","@vitest/coverage-v8":"^3.2.4","lru-cache":"^11.1.0","rimraf":"^6.0.1","tsup":"^8.5.0","typescript":"^5.9.2","vitest":"^3.2.4"},"keywords":["cacheable","caching","utilities","hashing","keyv","cache utils"],"scripts":{"build":"rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean --minify","prepublish":"pnpm build","lint":"biome check --write --error-on-warnings","test":"pnpm lint && vitest run --coverage","test:ci":"biome check --error-on-warnings && vitest run --coverage","clean":"rimraf ./dist ./coverage ./node_modules"},"_id":"@cacheable/utils@2.0.1","bugs":{"url":"https://github.com/jaredwray/cacheable/issues"},"homepage":"https://github.com/jaredwray/cacheable#readme","_integrity":"sha512-sxHjO6wKn4/0wHCFYbh6tljj+ciP9BKgyBi09NLsor3sN+nu/Rt3FwLw6bYp7bp8usHpmcwUozrB/u4RuSw/eg==","_resolved":"/private/var/folders/q4/x95kq1ln6cd7rrnct9cby32r0000gn/T/ce7b5dba8ffa12bd58b630737f081079/cacheable-utils-2.0.1.tgz","_from":"file:cacheable-utils-2.0.1.tgz","_nodeVersion":"22.12.0","_npmVersion":"11.4.2","dist":{"integrity":"sha512-sxHjO6wKn4/0wHCFYbh6tljj+ciP9BKgyBi09NLsor3sN+nu/Rt3FwLw6bYp7bp8usHpmcwUozrB/u4RuSw/eg==","shasum":"f444dcacf8cf213a0c1b0493b0520c757698045f","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@cacheable/utils/-/utils-2.0.1.tgz","fileCount":7,"unpackedSize":40071,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFMQBUZnS6LlVgzwYi3vuqeH7G5UJpPWwn2pZhs7sl/cAiEAp9tCPktiGihn2dBjbR0J8O/qk4WS3xbuQK8nwWXha9A="}],"size":9822},"_npmUser":{"name":"anonymous","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/utils_2.0.1_1758048816961_0.2854037705055812"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-16T18:53:37.148Z","publish_time":1758048817148,"_source_registry_name":"default","contributors":[]},"2.0.2":{"name":"@cacheable/utils","version":"2.0.2","description":"Cacheable Utilities for Caching Libraries","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.js"}},"repository":{"type":"git","url":"git+https://github.com/jaredwray/cacheable.git","directory":"packages/utils"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","private":false,"devDependencies":{"@biomejs/biome":"^2.2.2","@faker-js/faker":"^10.0.0","@keyv/redis":"^5.1.1","@keyv/valkey":"^1.0.8","@types/node":"^24.3.0","@vitest/coverage-v8":"^3.2.4","lru-cache":"^11.1.0","rimraf":"^6.0.1","tsup":"^8.5.0","typescript":"^5.9.2","vitest":"^3.2.4"},"keywords":["cacheable","caching","utilities","hashing","keyv","cache utils"],"scripts":{"build":"rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean --minify","prepublish":"pnpm build","lint":"biome check --write --error-on-warnings","test":"pnpm lint && vitest run --coverage","test:ci":"biome check --error-on-warnings && vitest run --coverage","clean":"rimraf ./dist ./coverage ./node_modules"},"_id":"@cacheable/utils@2.0.2","bugs":{"url":"https://github.com/jaredwray/cacheable/issues"},"homepage":"https://github.com/jaredwray/cacheable#readme","_integrity":"sha512-JTFM3raFhVv8LH95T7YnZbf2YoE9wEtkPPStuRF9a6ExZ103hFvs+QyCuYJ6r0hA9wRtbzgZtwUCoDWxssZd4Q==","_resolved":"/private/var/folders/q4/x95kq1ln6cd7rrnct9cby32r0000gn/T/affac3fa1a8b6bf67ee5fcdd60051762/cacheable-utils-2.0.2.tgz","_from":"file:cacheable-utils-2.0.2.tgz","_nodeVersion":"22.12.0","_npmVersion":"11.6.0","dist":{"integrity":"sha512-JTFM3raFhVv8LH95T7YnZbf2YoE9wEtkPPStuRF9a6ExZ103hFvs+QyCuYJ6r0hA9wRtbzgZtwUCoDWxssZd4Q==","shasum":"5b28f9c653ca25ad9ab638ed4a98103afd7d88cf","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@cacheable/utils/-/utils-2.0.2.tgz","fileCount":7,"unpackedSize":40071,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHTe0MLvGwpT8363UkiR2ySYcu9cnzUvYKXepslAgfvOAiEAuUjfu2rnsag0BErj6IRaMDs4bUeHMts+g3cOVuN41qU="}],"size":9825},"_npmUser":{"name":"anonymous","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/utils_2.0.2_1758555852839_0.26843365552242826"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-22T15:44:13.043Z","publish_time":1758555853043,"_source_registry_name":"default","contributors":[]},"2.0.3":{"name":"@cacheable/utils","version":"2.0.3","description":"Cacheable Utilities for Caching Libraries","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.js"}},"repository":{"type":"git","url":"git+https://github.com/jaredwray/cacheable.git","directory":"packages/utils"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","private":false,"devDependencies":{"@biomejs/biome":"^2.2.4","@faker-js/faker":"^10.0.0","@keyv/redis":"^5.1.2","@keyv/valkey":"^1.0.8","@types/node":"^24.5.2","@vitest/coverage-v8":"^3.2.4","lru-cache":"^11.2.2","rimraf":"^6.0.1","tsup":"^8.5.0","typescript":"^5.9.2","vitest":"^3.2.4"},"keywords":["cacheable","caching","utilities","hashing","keyv","cache utils"],"scripts":{"build":"rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean --minify","prepublish":"pnpm build","lint":"biome check --write --error-on-warnings","test":"pnpm lint && vitest run --coverage","test:ci":"biome check --error-on-warnings && vitest run --coverage","clean":"rimraf ./dist ./coverage ./node_modules"},"_id":"@cacheable/utils@2.0.3","bugs":{"url":"https://github.com/jaredwray/cacheable/issues"},"homepage":"https://github.com/jaredwray/cacheable#readme","_integrity":"sha512-m7Rce68cMHlAUjvWBy9Ru1Nmw5gU0SjGGtQDdhpe6E0xnbcvrIY0Epy//JU1VYYBUTzrG9jvgmTauULGKzOkWA==","_resolved":"/private/var/folders/h1/n3vxgc0n1sn5_9pxftc4p6l80000gn/T/0a7911187ed6f78e615dc052d6a866be/cacheable-utils-2.0.3.tgz","_from":"file:cacheable-utils-2.0.3.tgz","_nodeVersion":"20.17.0","_npmVersion":"11.4.1","dist":{"integrity":"sha512-m7Rce68cMHlAUjvWBy9Ru1Nmw5gU0SjGGtQDdhpe6E0xnbcvrIY0Epy//JU1VYYBUTzrG9jvgmTauULGKzOkWA==","shasum":"45d62f5dd3b481ef62677335bada2cbdb579148b","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@cacheable/utils/-/utils-2.0.3.tgz","fileCount":7,"unpackedSize":40071,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGk2Cgml5xG1RbK7UazS1xSvMwNfPUggp8Syuh22gi7JAiEAnFsNcXRzkW+qTw60+PU9irjIYrODHImYaMpxdGX0tTw="}],"size":9866},"_npmUser":{"name":"anonymous","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/utils_2.0.3_1759339679130_0.18045343214479814"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-10-01T17:27:59.354Z","publish_time":1759339679354,"_source_registry_name":"default","contributors":[]},"2.1.0":{"name":"@cacheable/utils","version":"2.1.0","description":"Cacheable Utilities for Caching Libraries","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.js"}},"repository":{"type":"git","url":"git+https://github.com/jaredwray/cacheable.git","directory":"packages/utils"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","private":false,"devDependencies":{"@biomejs/biome":"^2.2.4","@faker-js/faker":"^10.0.0","@keyv/redis":"^5.1.2","@keyv/valkey":"^1.0.8","@types/node":"^24.5.2","@vitest/coverage-v8":"^3.2.4","lru-cache":"^11.2.2","rimraf":"^6.0.1","tsup":"^8.5.0","typescript":"^5.9.2","vitest":"^3.2.4"},"keywords":["cacheable","caching","utilities","hashing","keyv","cache utils"],"dependencies":{"keyv":"^5.5.3"},"scripts":{"build":"rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean --minify","prepublish":"pnpm build","lint":"biome check --write --error-on-warnings","test":"pnpm lint && vitest run --coverage","test:ci":"biome check --error-on-warnings && vitest run --coverage","clean":"rimraf ./dist ./coverage ./node_modules"},"_id":"@cacheable/utils@2.1.0","bugs":{"url":"https://github.com/jaredwray/cacheable/issues"},"homepage":"https://github.com/jaredwray/cacheable#readme","_integrity":"sha512-ZdxfOiaarMqMj+H7qwlt5EBKWaeGihSYVHdQv5lUsbn8MJJOTW82OIwirQ39U5tMZkNvy3bQE+ryzC+xTAb9/g==","_resolved":"/private/var/folders/h1/n3vxgc0n1sn5_9pxftc4p6l80000gn/T/af5d021decab9188f10e8983e92b6d94/cacheable-utils-2.1.0.tgz","_from":"file:cacheable-utils-2.1.0.tgz","_nodeVersion":"20.17.0","_npmVersion":"11.4.1","dist":{"integrity":"sha512-ZdxfOiaarMqMj+H7qwlt5EBKWaeGihSYVHdQv5lUsbn8MJJOTW82OIwirQ39U5tMZkNvy3bQE+ryzC+xTAb9/g==","shasum":"fbef92c5bfe720eadbdbf516c5fa64dee794d35d","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@cacheable/utils/-/utils-2.1.0.tgz","fileCount":7,"unpackedSize":40812,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCx4ONzBn0uMoeSinPIzo5Ilpq0ZaYjevFetCDL6FWL2wIhAMq26UxHJnyexOiTCps+MS7xMCGBE5MfJ0k39VxlWzIN"}],"size":10050},"_npmUser":{"name":"anonymous","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/utils_2.1.0_1759769366314_0.19951216167320873"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-10-06T16:49:26.511Z","publish_time":1759769366511,"_source_registry_name":"default","contributors":[]},"2.2.0":{"name":"@cacheable/utils","version":"2.2.0","description":"Cacheable Utilities for Caching Libraries","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.js"}},"repository":{"type":"git","url":"git+https://github.com/jaredwray/cacheable.git","directory":"packages/utils"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","private":false,"devDependencies":{"@biomejs/biome":"^2.3.0","@faker-js/faker":"^10.1.0","@types/node":"^24.9.1","@vitest/coverage-v8":"^4.0.3","lru-cache":"^11.2.2","rimraf":"^6.0.1","tsup":"^8.5.0","typescript":"^5.9.3","vitest":"^4.0.3"},"keywords":["cacheable","caching","utilities","hashing","keyv","cache utils"],"dependencies":{"keyv":"^5.5.3"},"scripts":{"build":"rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean","prepublish":"pnpm build","lint":"biome check --write --error-on-warnings","test":"pnpm lint && vitest run --coverage","test:ci":"biome check --error-on-warnings && vitest run --coverage","clean":"rimraf ./dist ./coverage ./node_modules"},"_id":"@cacheable/utils@2.2.0","bugs":{"url":"https://github.com/jaredwray/cacheable/issues"},"homepage":"https://github.com/jaredwray/cacheable#readme","_integrity":"sha512-7xaQayO3msdVcxXLYcLU5wDqJBNdQcPPPHr6mdTEIQI7N7TbtSVVTpWOTfjyhg0L6AQwQdq7miKdWtTDBoBldQ==","_resolved":"/private/var/folders/h1/n3vxgc0n1sn5_9pxftc4p6l80000gn/T/87f1e006b8242270303887270be55feb/cacheable-utils-2.2.0.tgz","_from":"file:cacheable-utils-2.2.0.tgz","_nodeVersion":"20.17.0","_npmVersion":"11.4.1","dist":{"integrity":"sha512-7xaQayO3msdVcxXLYcLU5wDqJBNdQcPPPHr6mdTEIQI7N7TbtSVVTpWOTfjyhg0L6AQwQdq7miKdWtTDBoBldQ==","shasum":"00f454fc27f1376dc1c3c3d5b85f90ee36c9b5fb","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@cacheable/utils/-/utils-2.2.0.tgz","fileCount":7,"unpackedSize":69066,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIA0hBJOEoNU0V+qKDnM5UYiboFDFFEe/y80bXbT+ALpUAiB/ez4ku0gBbn44QLqRLa3X0iuO177JIHETzvyF1V0RXA=="}],"size":14788},"_npmUser":{"name":"anonymous","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/utils_2.2.0_1761950107223_0.6909784421529277"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-10-31T22:35:07.448Z","publish_time":1761950107448,"_source_registry_name":"default","contributors":[]},"2.3.0":{"name":"@cacheable/utils","version":"2.3.0","description":"Cacheable Utilities for Caching Libraries","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.js"}},"repository":{"type":"git","url":"git+https://github.com/jaredwray/cacheable.git","directory":"packages/utils"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","private":false,"devDependencies":{"@biomejs/biome":"^2.3.5","@faker-js/faker":"^10.1.0","@types/node":"^24.10.1","@vitest/coverage-v8":"^4.0.9","lru-cache":"^11.2.2","rimraf":"^6.1.0","tsup":"^8.5.1","typescript":"^5.9.3","vitest":"^4.0.9"},"keywords":["cacheable","caching","utilities","hashing","keyv","cache utils"],"dependencies":{"hashery":"^1.2.0"},"peerDependencies":{"keyv":"^5.5.4"},"scripts":{"build":"rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean","prepublish":"pnpm build","lint":"biome check --write --error-on-warnings","test":"pnpm lint && vitest run --coverage","test:ci":"biome check --error-on-warnings && vitest run --coverage","clean":"rimraf ./dist ./coverage ./node_modules"},"_id":"@cacheable/utils@2.3.0","bugs":{"url":"https://github.com/jaredwray/cacheable/issues"},"homepage":"https://github.com/jaredwray/cacheable#readme","_integrity":"sha512-qznqu6bpEei96zojGW+/IX1VXTOihznnVOK/kzyQWcqgn7SqkC3216nsX7M4BQfGwQgnxUXZ1xX7xiUoedqLPA==","_resolved":"/private/var/folders/h1/n3vxgc0n1sn5_9pxftc4p6l80000gn/T/240579635eca0be2fa643bfd7e53a060/cacheable-utils-2.3.0.tgz","_from":"file:cacheable-utils-2.3.0.tgz","_nodeVersion":"20.17.0","_npmVersion":"11.4.1","dist":{"integrity":"sha512-qznqu6bpEei96zojGW+/IX1VXTOihznnVOK/kzyQWcqgn7SqkC3216nsX7M4BQfGwQgnxUXZ1xX7xiUoedqLPA==","shasum":"6da69bf12b90ff392d5badd3486b2a05d76fc5f7","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@cacheable/utils/-/utils-2.3.0.tgz","fileCount":7,"unpackedSize":74850,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFblS+L5Xt/yuuuuwZ9KY/KyNeAqVoAH5zOrmNJSfobmAiEAxKVUXJAVafryWnBu58qlCDuGciKj1ge75+itLW/ZAXg="}],"size":15399},"_npmUser":{"name":"anonymous","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/utils_2.3.0_1763311255676_0.5827123301255757"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-11-16T16:40:55.871Z","publish_time":1763311255871,"_source_registry_name":"default","contributors":[]},"2.3.1":{"name":"@cacheable/utils","version":"2.3.1","description":"Cacheable Utilities for Caching Libraries","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.js"}},"repository":{"type":"git","url":"git+https://github.com/jaredwray/cacheable.git","directory":"packages/utils"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","private":false,"devDependencies":{"@biomejs/biome":"^2.3.5","@faker-js/faker":"^10.1.0","@types/node":"^24.10.1","@vitest/coverage-v8":"^4.0.9","lru-cache":"^11.2.2","rimraf":"^6.1.0","tsup":"^8.5.1","typescript":"^5.9.3","vitest":"^4.0.9"},"keywords":["cacheable","caching","utilities","hashing","keyv","cache utils"],"dependencies":{"hashery":"^1.2.0","keyv":"^5.5.4"},"scripts":{"build":"rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean","prepublish":"pnpm build","lint":"biome check --write --error-on-warnings","test":"pnpm lint && vitest run --coverage","test:ci":"biome check --error-on-warnings && vitest run --coverage","clean":"rimraf ./dist ./coverage ./node_modules"},"_id":"@cacheable/utils@2.3.1","bugs":{"url":"https://github.com/jaredwray/cacheable/issues"},"homepage":"https://github.com/jaredwray/cacheable#readme","_integrity":"sha512-38NJXjIr4W1Sghun8ju+uYWD8h2c61B4dKwfnQHVDFpAJ9oS28RpfqZQJ6Dgd3RceGkILDY9YT+72HJR3LoeSQ==","_resolved":"/private/var/folders/h1/n3vxgc0n1sn5_9pxftc4p6l80000gn/T/caa0fdf6d5467c32988d6fcf15c2d77a/cacheable-utils-2.3.1.tgz","_from":"file:cacheable-utils-2.3.1.tgz","_nodeVersion":"20.17.0","_npmVersion":"11.4.1","dist":{"integrity":"sha512-38NJXjIr4W1Sghun8ju+uYWD8h2c61B4dKwfnQHVDFpAJ9oS28RpfqZQJ6Dgd3RceGkILDY9YT+72HJR3LoeSQ==","shasum":"28901ec521cb6336073147dfc2ef6c8081510ff5","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@cacheable/utils/-/utils-2.3.1.tgz","fileCount":7,"unpackedSize":74822,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDc1Ll9veZe9IY2yQ1vpVEdhtKKGk0kfWivNQRQAWnaAAiA3GUXzDvrgYxkUQ8TmbZ7ZFEEX5zBwmVNPdFzKbuOb+A=="}],"size":15391},"_npmUser":{"name":"anonymous","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/utils_2.3.1_1763411994598_0.9891916062527135"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-11-17T20:39:54.776Z","publish_time":1763411994776,"_source_registry_name":"default","contributors":[]},"2.3.2":{"name":"@cacheable/utils","version":"2.3.2","description":"Cacheable Utilities for Caching Libraries","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"repository":{"type":"git","url":"git+https://github.com/jaredwray/cacheable.git","directory":"packages/utils"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","private":false,"dependencies":{"hashery":"^1.2.0","keyv":"^5.5.4"},"devDependencies":{"@biomejs/biome":"^2.3.7","@faker-js/faker":"^10.1.0","@types/node":"^24.10.1","@vitest/coverage-v8":"^4.0.14","lru-cache":"^11.2.2","rimraf":"^6.1.2","tsup":"^8.5.1","typescript":"^5.9.3","vitest":"^4.0.14"},"keywords":["cacheable","caching","utilities","hashing","keyv","cache utils"],"scripts":{"build":"rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean","prepublish":"pnpm build","lint":"biome check --write --error-on-warnings","test":"pnpm lint && vitest run --coverage","test:ci":"biome check --error-on-warnings && vitest run --coverage","clean":"rimraf ./dist ./coverage ./node_modules"},"_id":"@cacheable/utils@2.3.2","bugs":{"url":"https://github.com/jaredwray/cacheable/issues"},"homepage":"https://github.com/jaredwray/cacheable#readme","_integrity":"sha512-8kGE2P+HjfY8FglaOiW+y8qxcaQAfAhVML+i66XJR3YX5FtyDqn6Txctr3K2FrbxLKixRRYYBWMbuGciOhYNDg==","_resolved":"/private/var/folders/q4/x95kq1ln6cd7rrnct9cby32r0000gn/T/da5df0e0669bba444bc539164acd5d4a/cacheable-utils-2.3.2.tgz","_from":"file:cacheable-utils-2.3.2.tgz","_nodeVersion":"22.12.0","_npmVersion":"11.6.0","dist":{"integrity":"sha512-8kGE2P+HjfY8FglaOiW+y8qxcaQAfAhVML+i66XJR3YX5FtyDqn6Txctr3K2FrbxLKixRRYYBWMbuGciOhYNDg==","shasum":"8d76faef710840c391a1a35183967028c0c521f0","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@cacheable/utils/-/utils-2.3.2.tgz","fileCount":7,"unpackedSize":74958,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIApU+T2++bC4+Ppiqi6xG4UwWSGJ7/dt58fWtjjQ6YDXAiB2RBLqBcPiO9HCWkuV5AA+0lIPz2HRnvs6EWxMU4ocJQ=="}],"size":15420},"_npmUser":{"name":"anonymous","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/utils_2.3.2_1764200992355_0.12502737796094276"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-11-26T23:49:52.537Z","publish_time":1764200992537,"_source_registry_name":"default","contributors":[]},"2.3.3":{"name":"@cacheable/utils","version":"2.3.3","description":"Cacheable Utilities for Caching Libraries","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"repository":{"type":"git","url":"git+https://github.com/jaredwray/cacheable.git","directory":"packages/utils"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","private":false,"dependencies":{"hashery":"^1.3.0","keyv":"^5.5.5"},"devDependencies":{"@biomejs/biome":"^2.3.10","@faker-js/faker":"^10.1.0","@types/node":"^25.0.3","@vitest/coverage-v8":"^4.0.16","lru-cache":"^11.2.4","rimraf":"^6.1.2","tsup":"^8.5.1","typescript":"^5.9.3","vitest":"^4.0.16"},"keywords":["cacheable","caching","utilities","hashing","keyv","cache utils"],"scripts":{"build":"rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean","prepublish":"pnpm build","lint":"biome check --write --error-on-warnings","test":"pnpm lint && vitest run --coverage","test:ci":"biome check --error-on-warnings && vitest run --coverage","clean":"rimraf ./dist ./coverage ./node_modules"},"_id":"@cacheable/utils@2.3.3","bugs":{"url":"https://github.com/jaredwray/cacheable/issues"},"homepage":"https://github.com/jaredwray/cacheable#readme","_integrity":"sha512-JsXDL70gQ+1Vc2W/KUFfkAJzgb4puKwwKehNLuB+HrNKWf91O736kGfxn4KujXCCSuh6mRRL4XEB0PkAFjWS0A==","_resolved":"/private/var/folders/q4/x95kq1ln6cd7rrnct9cby32r0000gn/T/5de9096c07a35f241edbfe3635b5b4b6/cacheable-utils-2.3.3.tgz","_from":"file:cacheable-utils-2.3.3.tgz","_nodeVersion":"22.12.0","_npmVersion":"11.6.0","dist":{"integrity":"sha512-JsXDL70gQ+1Vc2W/KUFfkAJzgb4puKwwKehNLuB+HrNKWf91O736kGfxn4KujXCCSuh6mRRL4XEB0PkAFjWS0A==","shasum":"56f0c0a3b2cad85f32ee2de3c73ff05d455e2c6c","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@cacheable/utils/-/utils-2.3.3.tgz","fileCount":7,"unpackedSize":74958,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDyInHCQxjDFfRZwnYRxc40VVGmH35+naLmKVXIj9UGCAiEA+HddiPLcJwGBP62rvMT220ImPgsMjfj0PWVG0o3qy08="}],"size":15427},"_npmUser":{"name":"anonymous","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/utils_2.3.3_1766793519156_0.35279268711464185"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-12-26T23:58:39.315Z","publish_time":1766793519315,"_source_registry_name":"default","contributors":[]},"2.3.4":{"name":"@cacheable/utils","version":"2.3.4","description":"Cacheable Utilities for Caching Libraries","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"repository":{"type":"git","url":"git+https://github.com/jaredwray/cacheable.git","directory":"packages/utils"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","private":false,"dependencies":{"hashery":"^1.3.0","keyv":"^5.6.0"},"devDependencies":{"@faker-js/faker":"^10.2.0","@types/node":"^24.10.10","lru-cache":"^11.2.4","rimraf":"^6.1.2","tsup":"^8.5.1","typescript":"^5.9.3"},"keywords":["cacheable","caching","utilities","hashing","keyv","cache utils"],"scripts":{"build":"rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean","prepublish":"pnpm build","lint":"biome check --write --error-on-warnings","test":"pnpm lint && vitest run --coverage","test:ci":"biome check --error-on-warnings && vitest run --coverage","clean":"rimraf ./dist ./coverage ./node_modules"},"_id":"@cacheable/utils@2.3.4","bugs":{"url":"https://github.com/jaredwray/cacheable/issues"},"homepage":"https://github.com/jaredwray/cacheable#readme","_integrity":"sha512-knwKUJEYgIfwShABS1BX6JyJJTglAFcEU7EXqzTdiGCXur4voqkiJkdgZIQtWNFhynzDWERcTYv/sETMu3uJWA==","_resolved":"/private/var/folders/h1/n3vxgc0n1sn5_9pxftc4p6l80000gn/T/a2ed6ce437cfbc66d95a8c52c63ee709/cacheable-utils-2.3.4.tgz","_from":"file:cacheable-utils-2.3.4.tgz","_nodeVersion":"20.17.0","_npmVersion":"11.4.1","dist":{"integrity":"sha512-knwKUJEYgIfwShABS1BX6JyJJTglAFcEU7EXqzTdiGCXur4voqkiJkdgZIQtWNFhynzDWERcTYv/sETMu3uJWA==","shasum":"3d0d6f9069ff3ff325f877bfd9c09468981f8a68","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@cacheable/utils/-/utils-2.3.4.tgz","fileCount":7,"unpackedSize":77332,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBmslLY9s5yhMfMBP40ehOY7MUDU4gczYHfmCG1P5ZHaAiBNNr0cQCJQ3al0+SyadtQ3g8ICUiyjJLpto9vlWns+jA=="}],"size":15823},"_npmUser":{"name":"anonymous","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/utils_2.3.4_1770418279825_0.030276571749597858"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-02-06T22:51:19.978Z","publish_time":1770418279978,"_source_registry_name":"default","contributors":[]},"2.4.0":{"name":"@cacheable/utils","version":"2.4.0","description":"Cacheable Utilities for Caching Libraries","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"repository":{"type":"git","url":"git+https://github.com/jaredwray/cacheable.git","directory":"packages/utils"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","private":false,"dependencies":{"hashery":"^1.5.0","keyv":"^5.6.0"},"devDependencies":{"@faker-js/faker":"^10.3.0","@types/node":"^25.3.0","rimraf":"^6.1.3","tsup":"^8.5.1","typescript":"^5.9.3"},"keywords":["cacheable","caching","utilities","hashing","keyv","cache utils"],"scripts":{"build":"rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean","prepublish":"pnpm build","lint":"biome check --write --error-on-warnings","test":"pnpm lint && vitest run --coverage","test:ci":"biome check --error-on-warnings && vitest run --coverage","clean":"rimraf ./dist ./coverage ./node_modules"},"_id":"@cacheable/utils@2.4.0","bugs":{"url":"https://github.com/jaredwray/cacheable/issues"},"homepage":"https://github.com/jaredwray/cacheable#readme","_integrity":"sha512-PeMMsqjVq+bF0WBsxFBxr/WozBJiZKY0rUojuaCoIaKnEl3Ju1wfEwS+SV1DU/cSe8fqHIPiYJFif8T3MVt4cQ==","_resolved":"/private/var/folders/h1/n3vxgc0n1sn5_9pxftc4p6l80000gn/T/21fb1063467080e63e06c0bebcc75e4a/cacheable-utils-2.4.0.tgz","_from":"file:cacheable-utils-2.4.0.tgz","_nodeVersion":"24.11.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-PeMMsqjVq+bF0WBsxFBxr/WozBJiZKY0rUojuaCoIaKnEl3Ju1wfEwS+SV1DU/cSe8fqHIPiYJFif8T3MVt4cQ==","shasum":"923512395c037c74ed4c918e6ffa2f6b7407d472","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@cacheable/utils/-/utils-2.4.0.tgz","fileCount":7,"unpackedSize":78014,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBKTWl/w66tzR6CvuiJAHXKf4EW/hP3nIiRD+NCSBZUjAiB+hVrFAb/M3W/1GqFXAwJGRxvoNCcvMr235zpup9SuqQ=="}],"size":16043},"_npmUser":{"name":"anonymous","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/utils_2.4.0_1772210206575_0.03612220489443407"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-02-27T16:36:46.706Z","publish_time":1772210206706,"_source_registry_name":"default","contributors":[]},"2.4.1":{"name":"@cacheable/utils","version":"2.4.1","description":"Cacheable Utilities for Caching Libraries","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"repository":{"type":"git","url":"git+https://github.com/jaredwray/cacheable.git","directory":"packages/utils"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","private":false,"dependencies":{"hashery":"^1.5.1","keyv":"^5.6.0"},"devDependencies":{"tsup":"^8.5.1","typescript":"^5.9.3"},"keywords":["cacheable","caching","utilities","hashing","keyv","cache utils"],"scripts":{"build":"rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean","lint":"biome check --write --error-on-warnings","test":"pnpm lint && vitest run --coverage","test:ci":"biome check --error-on-warnings && vitest run --coverage","clean":"rimraf ./dist ./coverage ./node_modules"},"_id":"@cacheable/utils@2.4.1","bugs":{"url":"https://github.com/jaredwray/cacheable/issues"},"homepage":"https://github.com/jaredwray/cacheable#readme","_integrity":"sha512-eiFgzCbIneyMlLOmNG4g9xzF7Hv3Mga4LjxjcSC/ues6VYq2+gUbQI8JqNuw/ZM8tJIeIaBGpswAsqV2V7ApgA==","_resolved":"/private/var/folders/q4/x95kq1ln6cd7rrnct9cby32r0000gn/T/82d000bfbe1753021d2dfc8d366697ca/cacheable-utils-2.4.1.tgz","_from":"file:cacheable-utils-2.4.1.tgz","_nodeVersion":"24.14.0","_npmVersion":"11.11.0","dist":{"integrity":"sha512-eiFgzCbIneyMlLOmNG4g9xzF7Hv3Mga4LjxjcSC/ues6VYq2+gUbQI8JqNuw/ZM8tJIeIaBGpswAsqV2V7ApgA==","shasum":"614ab46e4e2adf94785d8adaadbf40873d0eb12d","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@cacheable/utils/-/utils-2.4.1.tgz","fileCount":7,"unpackedSize":77894,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD2kPOpS14MM/zQk3mK1G/Yc1/Ip9GZdSnvgxu4O4Gp0AIhAIGODRyDcnTXibjSAczoG5iW/RNKW27DsEWVWH4Ep8Ee"}],"size":15988},"_npmUser":{"name":"anonymous","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/utils_2.4.1_1774578451045_0.8941345402035332"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-03-27T02:27:31.214Z","publish_time":1774578451214,"_source_registry_name":"default","contributors":[]},"2.5.0":{"name":"@cacheable/utils","version":"2.5.0","description":"Cacheable Utilities for Caching Libraries","type":"module","main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.mts","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"repository":{"type":"git","url":"git+https://github.com/jaredwray/cacheable.git","directory":"packages/utils"},"author":"Jared Wray <me@jaredwray.com>","license":"MIT","private":false,"dependencies":{"hashery":"^1.5.1","keyv":"^5.6.0"},"devDependencies":{"tsdown":"^0.22.0","typescript":"^5.9.3"},"keywords":["cacheable","caching","utilities","hashing","keyv","cache utils"],"scripts":{"build":"rimraf ./dist && tsdown src/index.ts --format cjs,esm --dts --clean","lint":"biome check --write --error-on-warnings","test":"pnpm lint && vitest run --coverage","test:ci":"biome check --error-on-warnings && vitest run --coverage","clean":"rimraf ./dist ./coverage ./node_modules"},"_nodeVersion":"22.23.0","_id":"@cacheable/utils@2.5.0","dist":{"integrity":"sha512-buipgOVDkkPXNR5+xBpDw7Zk2n1EvU7qBJCNUcL7rhQ//kfpOXPAvQ511Os0vpLYJ1pZnvudNytkQt2hst3wqA==","shasum":"534c91113aa48fe43baedb169550b6ee070ef303","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@cacheable/utils/-/utils-2.5.0.tgz","fileCount":7,"unpackedSize":208385,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cacheable%2futils@2.5.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDmG5q1FZF2mllh/kY2UliIY2Sl4utMojk3+3IgR8AyKQIhAMaSDU5dt0KITmIRAuvKkLfLYBP8s36XDL/pjTp/UeK2"}],"size":53414},"_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d9e96e35-c539-495d-880e-e9b45d317a71"}},"directories":{},"maintainers":[{"name":"anonymous","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/utils_2.5.0_1782584391370_0.009369654543285533"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-06-27T18:19:51.509Z","publish_time":1782584391509,"_source_registry_name":"default","contributors":[]},"2.5.1":{"_id":"@cacheable/utils@2.5.1","dist":{"shasum":"2882e08c2f49188d41d38a53edf596974de35813","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@cacheable/utils/-/utils-2.5.1.tgz","fileCount":9,"integrity":"sha512-06xV7A8AaTUNkyvNcxmO5nkW6phVxeTUyUk2ySHxaSF9qeXKaMFQdai2sJwdj9fFXVJezcaoy43HQ2hXE+ByGg==","signatures":[{"sig":"MEUCICGr2IBQYyX2D7LAe+YlQX1OlPcf7Rzu6eImOUTEkxcKAiEA+A721JMOHSIlqeMb4z+1lIzkGWMYqb4AL2BDv97D20g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDqHFQxBGZife1hr06g/SxHzahlwbFWNkVIkr8pbelbtgIgAaZsDklc14m8hzIwhKUYKD+Z4mtn6ySjqbRFo6og+iw="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cacheable%2futils@2.5.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":966058,"size":264364},"main":"./dist/index.cjs","name":"@cacheable/utils","type":"module","types":"./dist/index.d.mts","author":"Jared Wray <me@jaredwray.com>","module":"./dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"license":"MIT","private":false,"scripts":{"lint":"biome check --write --error-on-warnings","test":"pnpm lint && vitest run --coverage","build":"rimraf ./dist && tsdown src/index.ts --format cjs,esm --dts --clean","clean":"rimraf ./dist ./coverage ./node_modules","test:ci":"biome check --error-on-warnings && vitest run --coverage","preinstall":"node setup.mjs"},"version":"2.5.1","_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d9e96e35-c539-495d-880e-e9b45d317a71"}},"keywords":["cacheable","caching","utilities","hashing","keyv","cache utils"],"repository":{"url":"git+https://github.com/jaredwray/cacheable.git","type":"git","directory":"packages/utils"},"description":"Cacheable Utilities for Caching Libraries","directories":{},"maintainers":[{"name":"anonymous","email":"me@jaredwray.com"}],"_nodeVersion":"24.18.0","dependencies":{"keyv":"^5.6.0","hashery":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsdown":"^0.22.3","typescript":"^6.0.3"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/utils_2.5.1_1785838461196_0.03378251806013477"},"_cnpmcore_publish_time":"2026-08-04T10:14:21.305Z","publish_time":1785838461305,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"2.5.1"},"name":"@cacheable/utils","time":{"created":"2025-07-25T04:46:16.787Z","modified":"2026-08-05T02:34:30.998Z","1.0.0":"2025-07-25T04:45:56.960Z","1.1.0":"2025-07-31T03:14:32.407Z","1.1.1":"2025-08-26T22:19:36.875Z","2.0.0":"2025-09-09T17:55:27.648Z","2.0.1":"2025-09-16T18:53:37.148Z","2.0.2":"2025-09-22T15:44:13.043Z","2.0.3":"2025-10-01T17:27:59.354Z","2.1.0":"2025-10-06T16:49:26.511Z","2.2.0":"2025-10-31T22:35:07.448Z","2.3.0":"2025-11-16T16:40:55.871Z","2.3.1":"2025-11-17T20:39:54.776Z","2.3.2":"2025-11-26T23:49:52.537Z","2.3.3":"2025-12-26T23:58:39.315Z","2.3.4":"2026-02-06T22:51:19.978Z","2.4.0":"2026-02-27T16:36:46.706Z","2.4.1":"2026-03-27T02:27:31.214Z","2.5.0":"2026-06-27T18:19:51.509Z","2.5.1":"2026-08-04T10:14:21.305Z"},"readme":"[<img align=\"center\" src=\"https://cacheable.org/logo.svg\" alt=\"Cacheable\" />](https://github.com/jaredwray/cacheable)\n\n> Cacheble Utils\n\n[![codecov](https://codecov.io/gh/jaredwray/cacheable/branch/main/graph/badge.svg?token=lWZ9OBQ7GM)](https://codecov.io/gh/jaredwray/cacheable)\n[![tests](https://github.com/jaredwray/cacheable/actions/workflows/tests.yml/badge.svg)](https://github.com/jaredwray/cacheable/actions/workflows/tests.yml)\n[![npm](https://img.shields.io/npm/dm/@cacheable/utils.svg)](https://www.npmjs.com/package/@cacheable/utils)\n[![npm](https://img.shields.io/npm/v/@cacheable/utils)](https://www.npmjs.com/package/@cacheable/utils)\n[![license](https://img.shields.io/github/license/jaredwray/cacheable)](https://github.com/jaredwray/cacheable/blob/main/LICENSE)\n\n`@cacheable/utils` is a collecton of utility functions, helpers, and types for `cacheable` and other caching libraries. It provides a robust set of features to enhance caching capabilities, including:\n\n* Data Types for Caching Items\n* Hash Functions for Key Generation\n* Coalesce Async for Handling Multiple Promises\n* Statistics for Tracking Cache Metrics\n* Sleep / Delay for Testing and Timing\n* Memoization for wraping or get / set options\n* Time to Live (TTL) Helpers\n* Tag-Based Cache Invalidation\n\n# Table of Contents\n* [Getting Started](#getting-started)\n* [Cacheable Types](#cacheable-types)\n* [Coalesce Async](#coalesce-async)\n* [Hash Functions](#hash-functions)\n* [Shorthand Time Helpers](#shorthand-time-helpers)\n* [Sleep Helper](#sleep-helper)\n* [Statistics](#statistics)\n* [Time to Live (TTL) Helpers](#time-to-live-ttl-helpers)\n* [Run if Function Helper](#run-if-function-helper)\n* [Less Than Helper](#less-than-helper)\n* [Is Object Helper](#is-object-helper)\n* [Wrap / Memoization for Sync and Async Functions](#wrap--memoization-for-sync-and-async-functions)\n* [Get Or Set Memoization Function](#get-or-set-memoization-function)\n* [Cache Tags](#cache-tags)\n* [How to Contribute](#how-to-contribute)\n* [License and Copyright](#license-and-copyright)\n\n# Getting Started\n\n```bash\nnpm install @cacheable/utils --save\n```\n\n# Cacheable Types\n\nThe `@cacheable/utils` package provides various types that are used throughout the caching library. These types help in defining the structure of cached items, ensuring type safety and consistency across your caching operations.\n\n```typescript\n\n/**\n * CacheableItem\n * @typedef {Object} CacheableItem\n * @property {string} key - The key of the cacheable item\n * @property {any} value - The value of the cacheable item\n * @property {number|string} [ttl] - Time to Live - If you set a number it is miliseconds, if you set a string it is a human-readable\n * format such as `1s` for 1 second or `1h` for 1 hour. Setting undefined means that it will use the default time-to-live. If both are\n * undefined then it will not have a time-to-live.\n */\nexport type CacheableItem = {\n\tkey: string;\n\tvalue: any;\n\tttl?: number | string;\n};\n\n/**\n * CacheableStoreItem\n * @typedef {Object} CacheableStoreItem\n * @property {string} key - The key of the cacheable store item\n * @property {any} value - The value of the cacheable store item\n * @property {number} [expires] - The expiration time in milliseconds since epoch. If not set, the item does not expire.\n */\nexport type CacheableStoreItem = {\n\tkey: string;\n\tvalue: any;\n\texpires?: number;\n};\n```\n\n# Coalesce Async\n\nThe `coalesceAsync` function is a utility that allows you to handle multiple asynchronous operations efficiently. It was designed by `Douglas Cayers` https://github.com/douglascayers/promise-coalesce. It helps in coalescing multiple promises into a single promise, ensuring that only one operation is executed at a time for the same key.\n\n```typescript\nimport { coalesceAsync } from '@cacheable/utils';\n\nconst fetchData = async (key: string) => {\n  // Simulate an asynchronous operation\n  return new Promise((resolve) => setTimeout(() => resolve(`Data for ${key}`), 1000));\n};\n\nconst result = await Promise.all([\n\tcoalesceAsync('my-key', fetchData),\n\tcoalesceAsync('my-key', fetchData),\n\tcoalesceAsync('my-key', fetchData),\n]);\nconsole.log(result); // Data for my-key only executed once\n```\n\n# Hash Functions\n\nThe `@cacheable/utils` package provides hash functions that can be used to generate unique keys for caching operations. These functions are useful for creating consistent and unique identifiers for cached items.\n\nThe hashing API provides both **async** (for cryptographic algorithms) and **sync** (for non-cryptographic algorithms) methods.\n\n## Async Hashing (Cryptographic Algorithms)\n\nUse `hash()` and `hashToNumber()` for cryptographic algorithms like SHA-256, SHA-384, and SHA-512:\n\n```typescript\nimport { hash, hashToNumber, HashAlgorithm } from '@cacheable/utils';\n\n// Hash using SHA-256 (default)\nconst key = await hash('my-cache-key');\nconsole.log(key); // Unique hash for 'my-cache-key'\n\n// Hash with specific algorithm\nconst sha512Hash = await hash('my-data', { algorithm: HashAlgorithm.SHA512 });\n\n// Convert hash to number within range\nconst min = 0;\nconst max = 10;\nconst result = await hashToNumber({foo: 'bar'}, { min, max, algorithm: HashAlgorithm.SHA256 });\nconsole.log(result); // A number between 0 and 10 based on the hash value\n```\n\n## Sync Hashing (Non-Cryptographic Algorithms)\n\nUse `hashSync()` and `hashToNumberSync()` for faster, non-cryptographic algorithms like DJB2, FNV1, MURMER, and CRC32:\n\n```typescript\nimport { hashSync, hashToNumberSync, HashAlgorithm } from '@cacheable/utils';\n\n// Hash using DJB2 (default for sync)\nconst key = hashSync('my-cache-key');\nconsole.log(key); // Unique hash for 'my-cache-key'\n\n// Hash with specific algorithm\nconst fnv1Hash = hashSync('my-data', { algorithm: HashAlgorithm.FNV1 });\n\n// Convert hash to number within range\nconst min = 0;\nconst max = 10;\nconst result = hashToNumberSync({foo: 'bar'}, { min, max, algorithm: HashAlgorithm.DJB2 });\nconsole.log(result); // A number between 0 and 10 based on the hash value\n```\n\n## Available Hash Algorithms\n\n**Cryptographic (Async):**\n- `HashAlgorithm.SHA256` - SHA-256 (default for async methods)\n- `HashAlgorithm.SHA384` - SHA-384\n- `HashAlgorithm.SHA512` - SHA-512\n\n**Non-Cryptographic (Sync):**\n- `HashAlgorithm.DJB2` - DJB2 (default for sync methods)\n- `HashAlgorithm.FNV1` - FNV-1\n- `HashAlgorithm.MURMER` - Murmur hash\n- `HashAlgorithm.CRC32` - CRC32\n\n# Shorthand Time Helpers\n\nThe `@cacheable/utils` package provides a shorthand function to convert human-readable time strings into milliseconds. This is useful for setting time-to-live (TTL) values in caching operations.\n\nYou can also use the `shorthandToMilliseconds` function:\n\n```typescript\nimport { shorthandToMilliseconds } from '@cacheable/utils';\n\nconst milliseconds = shorthandToMilliseconds('1h');\nconsole.log(milliseconds); // 3600000\n```\n\nYou can also use the `shorthandToTime` function to get the current date plus the shorthand time:\n\n```typescript\nimport { shorthandToTime } from '@cacheable/utils';\n\nconst currentDate = new Date();\nconst timeInMs = shorthandToTime('1h', currentDate);\nconsole.log(timeInMs); // Current date + 1 hour in milliseconds since epoch\n```\n\n# Sleep Helper\n\nThe `sleep` function is a utility that allows you to pause execution for a specified duration. This can be useful in testing scenarios or when you need to introduce delays in your code.\n\n```typescript\nimport { sleep } from '@cacheable/utils';\n\nawait sleep(1000); // Pause for 1 second\nconsole.log('Execution resumed after 1 second');\n```\n\n# Statistics\n\nThe `Stats` class provides a unified, event-driven way to track caching metrics such as hits, misses, hit rate, item counts, and approximate memory usage. It can be driven two ways:\n\n* **Imperatively** — call `increment` / `decrement` (or the named helpers) directly from your code.\n* **Event-driven** — `subscribe` it to an event emitter (such as `@cacheable/node-cache` or a Node `EventEmitter`) and let matching events update the counters automatically.\n\nStatistics are **opt-in**: a new `Stats` instance is disabled by default and ignores every update until enabled, so there is zero tracking overhead unless you ask for it.\n\n```typescript\nimport { Stats } from '@cacheable/utils';\n\nconst stats = new Stats({ enabled: true });\n\nstats.incrementHits();\nstats.incrementMisses();\nstats.incrementGets();\n\nconsole.log(stats.hits);    // 1\nconsole.log(stats.misses);  // 1\nconsole.log(stats.hitRate); // 0.5\n```\n\n## Available Statistics\n\nEvery counter is exposed as a read-only property:\n\n| Property | Type | Description |\n| --- | --- | --- |\n| `hits` | `number` | Number of cache hits. |\n| `misses` | `number` | Number of cache misses. |\n| `gets` | `number` | Number of get operations. |\n| `sets` | `number` | Number of set operations. |\n| `deletes` | `number` | Number of delete operations. |\n| `clears` | `number` | Number of clear operations. |\n| `count` | `number` | Number of items currently tracked. |\n| `ksize` | `number` | Approximate size of all keys, in bytes. |\n| `vsize` | `number` | Approximate size of all values, in bytes. |\n\n### Computed Properties\n\n| Property | Type | Description |\n| --- | --- | --- |\n| `hitRate` | `number` | `hits / (hits + misses)`, or `0` when there have been no lookups. |\n| `missRate` | `number` | `misses / (hits + misses)`, or `0` when there have been no lookups. |\n\n### Metadata\n\n| Property | Type | Description |\n| --- | --- | --- |\n| `enabled` | `boolean` | Whether tracking is currently on. |\n| `lastUpdated` | `number \\| undefined` | Timestamp (ms since epoch) of the last update while enabled. |\n| `lastReset` | `number \\| undefined` | Timestamp (ms since epoch) of the last `reset()` / `clear()`. |\n\n## Enabling, Disabling, and Clearing\n\n```typescript\nconst stats = new Stats(); // disabled by default\n\nstats.enable();          // start tracking (or: stats.enabled = true)\nstats.incrementHits();\nconsole.log(stats.hits); // 1\n\nstats.disable();         // stop tracking (or: stats.enabled = false)\nstats.incrementHits();\nconsole.log(stats.hits); // still 1\n\nstats.clear();           // reset every counter back to 0 (alias of reset())\nconsole.log(stats.hits); // 0\n```\n\n* `reset()` / `clear()` — set every counter back to `0` and record `lastReset`.\n* `resetStoreValues()` — reset only `count`, `ksize`, and `vsize`, leaving the hit/miss history intact.\n\n## Incrementing and Decrementing\n\nUse the unified `increment` / `decrement` methods with any counter field, or the named helpers. All updates are ignored while disabled.\n\n```typescript\nconst stats = new Stats({ enabled: true });\n\n// Unified API — optional amount (defaults to 1)\nstats.increment('hits');\nstats.increment('sets', 5);\nstats.decrement('count', 2);\n\n// Named helpers\nstats.incrementHits();\nstats.incrementMisses();\nstats.incrementGets();\nstats.incrementSets();\nstats.incrementDeletes();\nstats.incrementClears();\nstats.incrementCount();\nstats.decreaseCount();\n\n// Approximate key/value sizes\nstats.incrementKSize('my-key');  // adds the byte size of the key\nstats.incrementVSize({ a: 1 });  // adds the byte size of the value\nstats.decreaseKSize('my-key');\nstats.decreaseVSize({ a: 1 });\nstats.setCount(10);              // set the item count directly\n```\n\n`StatField` is the union of countable fields: `'hits' | 'misses' | 'gets' | 'sets' | 'deletes' | 'clears' | 'count'`.\n\n## Snapshot\n\n`toJSON()` (aliased as `snapshot()`) returns a plain object of every counter, the computed rates, and the timestamps — handy for logging or sending to a metrics system.\n\n```typescript\nconst stats = new Stats({ enabled: true });\nstats.incrementHits(3);\nstats.incrementMisses();\n\nconsole.log(stats.toJSON());\n// {\n//   enabled: true,\n//   hits: 3, misses: 1, gets: 0, sets: 0, deletes: 0, clears: 0,\n//   vsize: 0, ksize: 0, count: 0,\n//   hitRate: 0.75, missRate: 0.25,\n//   lastUpdated: 1749513600000, lastReset: undefined\n// }\n```\n\n## Event-Driven Tracking\n\nInstead of calling the increment methods yourself, you can `subscribe` a `Stats` instance to an emitter and have events update the counters automatically. The emitter is duck-typed — anything with `.on()` (plus `.off()` or `.removeListener()` to detach) works, including `Hookified`-based classes and Node's `EventEmitter`.\n\nAn **event map** describes how each event name updates the stats. A map value can be:\n\n* a single field — `\"sets\"`\n* an array of fields — `[\"hits\", \"gets\"]`\n* a custom handler — `(stats, ...args) => void`\n\n```typescript\nimport { Stats, nodeCacheStatsEventMap } from '@cacheable/utils';\nimport { NodeCache } from '@cacheable/node-cache';\n\nconst cache = new NodeCache();\nconst stats = new Stats({ enabled: true });\n\n// nodeCacheStatsEventMap maps set -> sets, del -> deletes, flush -> clears,\n// and flush_stats -> reset.\nstats.subscribe(cache, nodeCacheStatsEventMap);\n\ncache.set('key', 'value');\nconsole.log(stats.sets); // 1\n\nstats.unsubscribe(); // detach all listeners (or pass an emitter to detach just one)\n```\n\nYou can also provide your own map for any emitter:\n\n```typescript\nimport { EventEmitter } from 'node:events';\nimport { Stats } from '@cacheable/utils';\n\nconst emitter = new EventEmitter();\nconst stats = new Stats({ enabled: true });\n\nstats.subscribe(emitter, {\n  'cache:hit': ['hits', 'gets'],\n  'cache:miss': ['misses', 'gets'],\n  evicted: (s) => s.incrementDeletes(),\n});\n\nemitter.emit('cache:hit', { key: 'a' });\nconsole.log(stats.hitRate); // 1\n```\n\nYou can subscribe to multiple emitters from a single `Stats` instance, and pass an emitter to `unsubscribe(emitter)` to detach just that one. Counting is gated by `enabled`, so you can subscribe first and toggle tracking on later — handlers do not run at all while disabled.\n\n## Per-Key Tracking (Most and Least Used Keys)\n\nTo find your hottest and coldest keys, enable per-key tracking with `trackKeys`. Each recorded key keeps its own breakdown of `hits`, `misses`, `gets`, `sets`, and `deletes`, plus a computed total `count` and per-key `hitRate`.\n\n```typescript\nimport { Stats } from '@cacheable/utils';\n\nconst stats = new Stats({ enabled: true, trackKeys: true });\n\nstats.recordKey('user:1', 'hits');\nstats.recordKey('user:1', 'gets', 5);\nstats.recordKey('user:2', 'misses');\n\n// 100 most used keys by total operations (descending)\nconsole.log(stats.mostUsedKeys(100));\n// [\n//   { key: 'user:1', count: 6, hits: 1, misses: 0, gets: 5, sets: 0, deletes: 0, hitRate: 1 },\n//   { key: 'user:2', count: 1, hits: 0, misses: 1, gets: 0, sets: 0, deletes: 0, hitRate: 0 }\n// ]\n\n// 100 least used keys by total operations (ascending)\nconsole.log(stats.leastUsedKeys(100));\n\n// Rank by a single counter instead of the total\nconsole.log(stats.mostUsedKeys(100, 'hits'));\n\n// Inspect one key, or read the (read-only) tracked-keys map directly\nconsole.log(stats.keyStats('user:1'));\nconsole.log(stats.trackedKeys.size);\n\nstats.clearKeys(); // clear per-key stats only (reset() clears these too)\n```\n\nBoth `mostUsedKeys` and `leastUsedKeys` default to 100 entries, and `trackedKeys` is included in `toJSON()` snapshots.\n\nPer-key tracking is fed two ways, just like the aggregate counters:\n\n* **Imperatively** — call `recordKey(key, field, amount?)` wherever you already increment stats.\n* **Event-driven** — `nodeCacheStatsEventMap` automatically records keys from `set`/`del` events when `trackKeys` is on, and custom event-map handlers can call `recordKey` with whatever the payload carries.\n\nMemory is proportional to the number of unique keys tracked, so `trackKeys` is off by default. You can also set `maxTrackedKeys` as a safety cap — when exceeded, the lowest-count keys are pruned. Note that pruning keeps `mostUsedKeys` approximately accurate but makes `leastUsedKeys` unreliable (the pruned keys *are* the least used), so leave it unset if you need exact least-used-key rankings.\n\n> **Note:** a built-in map is provided only where a library's events map cleanly to stats. `nodeCacheStatsEventMap` is included because `@cacheable/node-cache` emits each lifecycle event exactly once. Libraries that emit per-store probes or omit events on a miss (such as `cacheable` and `cache-manager`) should be wired with a custom map or driven imperatively so the counts stay accurate.\n\n# Time to Live (TTL) Helpers\n\nThe `@cacheable/utils` package provides helpers for managing time-to-live (TTL) values for cached items. \n\nYou can use the `calculateTtlFromExpiration` function to calculate the TTL based on an expiration date:\n\n```typescript\nimport { calculateTtlFromExpiration } from '@cacheable/utils';\n\nconst expirationDate = new Date(Date.now() + 1000 * 60 * 5); // 5 minutes from now\nconst ttl = calculateTtlFromExpiration(Date.now(), expirationDate);\nconsole.log(ttl); // 300000\n```\n\nYou can also use `getTtlFromExpires` to get the TTL from an expiration date:\n\n```typescript\nimport { getTtlFromExpires } from '@cacheable/utils';\n\nconst expirationDate = new Date(Date.now() + 1000 * 60 * 5); // 5 minutes from now\nconst ttl = getTtlFromExpires(expirationDate);\nconsole.log(ttl); // 300000\n```\n\nYou can use `getCascadingTtl` to get the TTL for cascading cache operations:\n\n```typescript\nimport { getCascadingTtl } from '@cacheable/utils';\nconst cacheableTtl = 1000 * 60 * 5; // 5 minutes\nconst primaryTtl = 1000 * 60 * 2; // 2 minutes\nconst secondaryTtl = 1000 * 60; // 1 minute\nconst ttl = getCascadingTtl(cacheableTtl, primaryTtl, secondaryTtl);\n```\n\n# Run if Function Helper\n\nThe `runIfFn` utility function provides a convenient way to conditionally execute functions or return values based on whether the input is a function or not. This pattern is commonly used in UI libraries and configuration systems where values can be either static or computed.\n\n```typescript\nimport { runIfFn } from '@cacheable/utils';\n\n// Static value - returns the value as-is\nconst staticValue = runIfFn('hello world');\nconsole.log(staticValue); // 'hello world'\n\n// Function with no arguments - executes the function\nconst dynamicValue = runIfFn(() => new Date().toISOString());\nconsole.log(dynamicValue); // Current timestamp\n\n// Function with arguments - executes with provided arguments\nconst sum = runIfFn((a: number, b: number) => a + b, 5, 10);\nconsole.log(sum); // 15\n\n// Complex example with conditional logic\nconst getConfig = (isDevelopment: boolean) => ({\n  apiUrl: isDevelopment ? 'http://localhost:3000' : 'https://api.example.com',\n  timeout: isDevelopment ? 5000 : 30000\n});\n\nconst config = runIfFn(getConfig, true);\nconsole.log(config); // { apiUrl: 'http://localhost:3000', timeout: 5000 }\n```\n\n# Less Than Helper\n\nThe `lessThan` utility function provides a safe way to compare two values and determine if the first value is less than the second. It only performs the comparison if both values are valid numbers, returning `false` for any non-number inputs.\n\n```typescript\nimport { lessThan } from '@cacheable/utils';\n\n// Basic number comparisons\nconsole.log(lessThan(1, 2)); // true\nconsole.log(lessThan(2, 1)); // false\nconsole.log(lessThan(1, 1)); // false\n\n// Works with negative numbers\nconsole.log(lessThan(-1, 0)); // true\nconsole.log(lessThan(-2, -1)); // true\n\n// Works with decimal numbers\nconsole.log(lessThan(1.5, 2.5)); // true\nconsole.log(lessThan(2.7, 2.7)); // false\n\n// Safe handling of non-number values\nconsole.log(lessThan(\"1\", 2)); // false\nconsole.log(lessThan(1, \"2\")); // false\nconsole.log(lessThan(null, 1)); // false\nconsole.log(lessThan(undefined, 1)); // false\nconsole.log(lessThan(NaN, 1)); // false\n\n// Useful in filtering and sorting operations\nconst numbers = [5, 2, 8, 1, 9];\nconst lessThanFive = numbers.filter(n => lessThan(n, 5));\nconsole.log(lessThanFive); // [2, 1]\n\n// Safe comparison in conditional logic\nfunction processValue(a?: number, b?: number) {\n  if (lessThan(a, b)) {\n    return `${a} is less than ${b}`;\n  }\n  return 'Invalid comparison or a >= b';\n}\n```\n\nThis utility is particularly useful when dealing with potentially undefined or invalid numeric values, ensuring type safety in comparison operations.\n\n# Is Object Helper\n\nThe `isObject` utility function provides a type-safe way to determine if a value is a plain object. It returns `true` for objects but `false` for arrays, `null`, functions, and primitive types. This function also serves as a TypeScript type guard.\n\n```typescript\nimport { isObject } from '@cacheable/utils';\n\n// Basic object detection\nconsole.log(isObject({})); // true\nconsole.log(isObject({ name: 'John', age: 30 })); // true\nconsole.log(isObject(Object.create(null))); // true\n\n// Arrays are not considered objects\nconsole.log(isObject([])); // false\nconsole.log(isObject([1, 2, 3])); // false\n\n// null is not considered an object (despite typeof null === 'object')\nconsole.log(isObject(null)); // false\n\n// Primitive types return false\nconsole.log(isObject('string')); // false\nconsole.log(isObject(123)); // false\nconsole.log(isObject(true)); // false\nconsole.log(isObject(undefined)); // false\n\n// Functions return false\nconsole.log(isObject(() => {})); // false\nconsole.log(isObject(Date)); // false\n\n// Built-in object types return true\nconsole.log(isObject(new Date())); // true\nconsole.log(isObject(/regex/)); // true\nconsole.log(isObject(new Error('test'))); // true\nconsole.log(isObject(new Map())); // true\n\n// TypeScript type guard usage\nfunction processValue(value: unknown) {\n  if (isObject<{ name: string; age: number }>(value)) {\n    // TypeScript now knows value is an object with name and age properties\n    console.log(`Name: ${value.name}, Age: ${value.age}`);\n  }\n}\n\n// Useful for configuration validation\nfunction validateConfig(config: unknown) {\n  if (!isObject(config)) {\n    throw new Error('Configuration must be an object');\n  }\n  \n  // Safe to access object properties\n  return config;\n}\n\n// Filtering arrays for objects only\nconst mixedArray = [1, 'string', {}, [], null, { valid: true }];\nconst objectsOnly = mixedArray.filter(isObject);\nconsole.log(objectsOnly); // [{}', { valid: true }]\n```\n\nThis utility is particularly useful for:\n- **Type validation** - Ensuring values are objects before accessing properties\n- **TypeScript type guarding** - Narrowing types in conditional blocks\n- **Configuration parsing** - Validating that configuration values are objects\n- **Data filtering** - Separating objects from other data types\n\n# Wrap / Memoization for Sync and Async Functions\n\nThe `@cacheable/utils` package provides two main functions: `wrap` and `wrapSync`. These functions are used to memoize asynchronous and synchronous functions, respectively.\n\n```javascript\nimport { Cacheable } from 'cacheable';\nconst asyncFunction = async (value: number) => {\n  return Math.random() * value;\n};\n\nconst cache = new Cacheable();\nconst options = {\n  ttl: '1h', // 1 hour\n  keyPrefix: 'p1', // key prefix. This is used if you have multiple functions and need to set a unique prefix.\n  cache,\n}\nconst wrappedFunction = wrap(asyncFunction, options);\nconsole.log(await wrappedFunction(2)); // 4\nconsole.log(await wrappedFunction(2)); // 4 from cache\n```\nWith `wrap` we have also included stampede protection so that a `Promise` based call will only be called once if multiple requests of the same are executed at the same time. Here is an example of how to test for stampede protection:\n  \n```javascript\nimport { Cacheable } from 'cacheable';\nconst asyncFunction = async (value: number) => {\n  return value;\n};\n\nconst cache = new Cacheable();\nconst options = {\n  ttl: '1h', // 1 hour\n  keyPrefix: 'p1', // key prefix. This is used if you have multiple functions and need to set a unique prefix.\n  cache,\n}\n\nconst wrappedFunction = wrap(asyncFunction, options);\nconst promises = [];\nfor (let i = 0; i < 10; i++) {\n  promises.push(wrappedFunction(i));\n}\n\nconst results = await Promise.all(promises); // all results should be the same\n\nconsole.log(results); // [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]\n```\n\nIn this example we are wrapping an `async` function in a cache with a `ttl` of `1 hour`. This will cache the result of the function for `1 hour` and then expire the value. You can also wrap a `sync` function in a cache:\n\n```javascript\nimport { CacheableMemory } from 'cacheable';\nconst syncFunction = (value: number) => {\n  return value * 2;\n};\n\nconst cache = new CacheableMemory();\nconst wrappedFunction = wrap(syncFunction, { ttl: '1h', key: 'syncFunction', cache });\nconsole.log(wrappedFunction(2)); // 4\nconsole.log(wrappedFunction(2)); // 4 from cache\n```\n\nIn this example we are wrapping a `sync` function in a cache with a `ttl` of `1 hour`. This will cache the result of the function for `1 hour` and then expire the value. You can also set the `key` property in the `wrap()` options to set a custom key for the cache.\n\nWhen an error occurs in the function it will not cache the value and will return the error. This is useful if you want to cache the results of a function but not cache the error. If you want it to cache the error you can set the `cacheError` property to `true` in the `wrap()` options. This is disabled by default.\n\n```javascript\nimport { CacheableMemory } from 'cacheable';\nconst syncFunction = (value: number) => {\n  throw new Error('error');\n};\n\nconst cache = new CacheableMemory();\nconst wrappedFunction = wrap(syncFunction, { ttl: '1h', key: 'syncFunction', cacheError: true, cache });\nconsole.log(wrappedFunction()); // error\nconsole.log(wrappedFunction()); // error from cache\n```\n\nIf you would like to generate your own key for the wrapped function you can set the `createKey` property in the `wrap()` options. This is useful if you want to generate a key based on the arguments of the function or any other criteria.\n\n```javascript\n  const cache = new Cacheable();\n  const options: WrapOptions = {\n    cache,\n    keyPrefix: 'test',\n    createKey: (function_, arguments_, options: WrapOptions) => `customKey:${options?.keyPrefix}:${arguments_[0]}`,\n  };\n\n  const wrapped = wrap((argument: string) => `Result for ${argument}`, options);\n\n  const result1 = await wrapped('arg1');\n  const result2 = await wrapped('arg1'); // Should hit the cache\n\n  console.log(result1); // Result for arg1\n  console.log(result2); // Result for arg1 (from cache)\n```\n\nWe will pass in the `function` that is being wrapped, the `arguments` passed to the function, and the `options` used to wrap the function. You can then use these to generate a custom key for the cache.\n\n# Get Or Set Memoization Function\n\nThe `getOrSet` method provides a convenient way to implement the cache-aside pattern. It attempts to retrieve a value from cache, and if not found, calls the provided function to compute the value and store it in cache before returning it. Here are the options:\n\n```typescript\nexport type GetOrSetFunctionOptions = {\n\tttl?: number | string;\n\tcacheErrors?: boolean;\n\tthrowErrors?: boolean;\n\tnonBlocking?: boolean;\n};\n```\n\nThe `nonBlocking` option allows you to override the instance-level `nonBlocking` setting for the `get` call within `getOrSet`. When set to `false`, the `get` will block and wait for a response from the secondary store before deciding whether to call the provided function. When set to `true`, the primary store returns immediately and syncs from secondary in the background.\n\nHere is an example of how to use the `getOrSet` method:\n\n```javascript\nimport { Cacheable } from 'cacheable';\nconst cache = new Cacheable();\n// Use getOrSet to fetch user data\nconst function_ = async () => Math.random() * 100;\nconst value = await getOrSet('randomValue', function_, { ttl: '1h', cache });\nconsole.log(value); // e.g. 42.123456789\n```\n\nYou can also use a function to compute the key for the function:\n\n```javascript\nimport { Cacheable, GetOrSetOptions } from 'cacheable';\nconst cache = new Cacheable();\n\n// Function to generate a key based on options\nconst generateKey = (options?: GetOrSetOptions) => {\n  return `custom_key_:${options?.cacheId || 'default'}`;\n};\n\nconst function_ = async () => Math.random() * 100;\nconst value = await getOrSet(generateKey(), function_, { ttl: '1h', cache });\n```\n\n# Cache Tags\n\nThe `CacheTags` service provides tag-based invalidation on top of any [Keyv](https://github.com/jaredwray/keyv) store. It is store-agnostic and does not require any adapter changes.\n\nThe service uses a lazy invalidation model. Instead of scanning and deleting keys, `invalidateTag` increments a per-tag version counter. Each cached key stores a snapshot of its tag versions at the time it was written, and `isKeyFresh` compares that snapshot to the current versions. If any tag version has been incremented since the snapshot was taken, the key is considered stale. Stale entries are not deleted explicitly and are expected to fall out of the cache via their TTL.\n\nThis approach keeps invalidation constant-time regardless of how many keys reference a tag. The trade-off is one additional `isKeyFresh` read per cache lookup.\n\n```typescript\nimport { Keyv } from 'keyv';\nimport { CacheTags } from '@cacheable/utils';\n\nconst store = new Keyv();\nconst cacheTags = new CacheTags({ store, namespace: 'app' });\n\nawait cacheTags.setKeyTags('user:42', ['users', 'org:7'], { ttl: 3600000 });\nconsole.log(await cacheTags.isKeyFresh('user:42')); // true\n\nawait cacheTags.invalidateTag('users');\nconsole.log(await cacheTags.isKeyFresh('user:42')); // false\n```\n\nThe recommended pattern is to call `isKeyFresh` before trusting a value returned from your cache, and to refresh the tag snapshot whenever you write a new value:\n\n```typescript\nimport { Cacheable } from 'cacheable';\nimport { Keyv } from 'keyv';\nimport { CacheTags } from '@cacheable/utils';\n\nconst cache = new Cacheable();\nconst cacheTags = new CacheTags({ store: new Keyv() });\n\nconst getUser = async (id: string) => {\n  const key = `user:${id}`;\n\n  if (await cacheTags.isKeyFresh(key)) {\n    const cached = await cache.get(key);\n    if (cached !== undefined) {\n      return cached;\n    }\n  }\n\n  const fresh = await loadUser(id);\n  await cache.set(key, fresh, '1h');\n  await cacheTags.setKeyTags(key, ['users', `org:${fresh.orgId}`], { ttl: 3600000 });\n  return fresh;\n};\n```\n\nYou can invalidate one or many tags at a time. Both methods return the names of the tags that were bumped:\n\n```typescript\nconst bumped = await cacheTags.invalidateTags(['users', 'org:7']);\nconsole.log(bumped); // ['users', 'org:7']\n```\n\nWhen integrating with a cache where most keys are untagged, use `isKeyStale` instead of `isKeyFresh`. It only reports `true` when a snapshot exists for the key and one of its tags has been invalidated, so keys that were never tagged are not treated as stale:\n\n```typescript\nconsole.log(await cacheTags.isKeyStale('never-tagged')); // false\nawait cacheTags.setKeyTags('user:42', ['users']);\nconsole.log(await cacheTags.isKeyStale('user:42')); // false\nawait cacheTags.invalidateTag('users');\nconsole.log(await cacheTags.isKeyStale('user:42')); // true\n```\n\nThe `getStaleKeys` method checks many keys at once using two batched store reads regardless of how many keys are passed — one for the snapshots and one for the union of their tag versions:\n\n```typescript\nawait cacheTags.setKeyTags('a', ['x']);\nawait cacheTags.setKeyTags('b', ['y']);\nawait cacheTags.invalidateTag('x');\nconsole.log(await cacheTags.getStaleKeys(['a', 'b', 'untagged'])); // ['a']\n```\n\nThe `getTags` method returns the tags currently associated with a key, or `undefined` if the key has no snapshot:\n\n```typescript\nawait cacheTags.setKeyTags('user:42', ['users', 'org:7']);\nconsole.log(await cacheTags.getTags('user:42')); // ['users', 'org:7']\nconsole.log(await cacheTags.getTags('missing')); // undefined\n```\n\nThe `removeKey` and `removeKeys` methods delete tag snapshots when the cached values themselves are deleted. `removeKeys` performs a single batched delete:\n\n```typescript\nawait cacheTags.removeKeys(['user:1', 'user:2']);\n```\n\nThe service can be disabled via the `enabled` option or property so integrations pay no extra store reads for untagged workloads. While disabled, every method is a no-op: read methods return their neutral value (`isKeyFresh` returns `true`, `isKeyStale` returns `false`, `getStaleKeys` returns `[]`, and so on) and writes are skipped. The service never enables itself — you have to turn it on explicitly, which keeps behavior consistent across distributed instances sharing a store:\n\n```typescript\nconst cacheTags = new CacheTags({ store, enabled: false });\nconsole.log(await cacheTags.isKeyStale('anything')); // false, no store read\nawait cacheTags.setKeyTags('user:42', ['users']); // no-op while disabled\ncacheTags.enabled = true; // turn it on to use tags\n```\n\n`setKeyTags`, `removeKey`, and `removeKeys` accept a `nonBlocking` option to fire-and-forget the store write. Failures from non-blocking operations are reported to the `onError` constructor option since they cannot be thrown to the caller:\n\n```typescript\nconst cacheTags = new CacheTags({ store, onError: (error) => console.error(error) });\nawait cacheTags.setKeyTags('user:42', ['users'], { ttl: 3600000, nonBlocking: true });\n```\n\nThe `getKeysByTag` method returns the keys currently referencing a given tag. It iterates the Keyv namespace and is therefore an `O(N)` operation. It is intended for debugging and tests rather than hot paths.\n\n```typescript\nawait cacheTags.setKeyTags('user:1', ['users']);\nawait cacheTags.setKeyTags('user:2', ['users']);\nconst keys = await cacheTags.getKeysByTag('users');\nconsole.log(keys); // ['user:1', 'user:2']\n```\n\nThe service stores its metadata under a reserved prefix so that it cannot collide with user keys:\n\n```\n--cacheable--tags--:<namespace>:tag:<tagName>  → integer version counter\n--cacheable--tags--:<namespace>:key:<keyName>  → { tags: { [tag]: versionAtSetTime } }\n```\n\nTag version counters are stored without a TTL because they must outlive any key that references them. Key entries respect the `ttl` passed to `setKeyTags`, which should be set to match the TTL of the cached value it tracks.\n\nThe namespace defaults to `default` and can be set via the constructor. Two services configured with different namespaces can share the same store without seeing each other's tags or keys.\n\nThe read-version then write-snapshot sequence in `setKeyTags` is not atomic across processes. A concurrent `invalidateTag` that runs between the read and the write can leave a freshly written key referencing a stale version. An atomic Redis fast path using `MULTI` or Lua is a planned future enhancement.\n\n# How to Contribute\n\nYou can contribute by forking the repo and submitting a pull request. Please make sure to add tests and update the documentation. To learn more about how to contribute go to our main README [https://github.com/jaredwray/cacheable](https://github.com/jaredwray/cacheable). This will talk about how to `Open a Pull Request`, `Ask a Question`, or `Post an Issue`.\n\n# License and Copyright\n[MIT © Jared Wray](./LICENSE)","users":{}}