{"_id":"@keyv/bigmap","_rev":"4180149","name":"@keyv/bigmap","description":"Bigmap for Keyv","dist-tags":{"alpha":"6.0.0-alpha.1","latest":"1.3.1"},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"time":{"modified":"2026-03-01T21:46:51.000Z","created":"2025-07-19T19:03:08.277Z","6.0.0-alpha.1":"2026-02-26T01:42:56.407Z","1.3.1":"2026-01-21T00:47:42.392Z","1.3.0":"2025-11-18T07:05:47.253Z","1.2.0":"2025-11-13T20:13:16.342Z","1.1.0":"2025-10-18T21:11:59.294Z","1.0.3":"2025-10-10T05:18:44.718Z","1.0.2":"2025-09-21T23:42:55.482Z","1.0.1":"2025-09-17T20:58:34.503Z","1.0.0":"2025-07-19T19:03:08.277Z"},"users":{},"author":{"name":"Jared Wray","email":"me@jaredwray.com","url":"http://jaredwray.com"},"repository":{"type":"git","url":"git+https://github.com/jaredwray/keyv.git"},"versions":{"6.0.0-alpha.1":{"name":"@keyv/bigmap","version":"6.0.0-alpha.1","description":"Bigmap for Keyv","type":"module","main":"dist/index.js","module":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"},"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"}}},"repository":{"type":"git","url":"git+https://github.com/jaredwray/keyv.git"},"keywords":["bigmap","keyv","key","value","store","cache","ttl"],"author":{"name":"Jared Wray","email":"me@jaredwray.com","url":"http://jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/keyv/issues"},"homepage":"https://github.com/jaredwray/keyv","dependencies":{"hashery":"^1.4.0","hookified":"^1.15.0"},"devDependencies":{"@biomejs/biome":"^2.3.11","@faker-js/faker":"^10.2.0","@vitest/coverage-v8":"^4.0.17","rimraf":"^6.1.2","tsd":"^0.33.0","vitest":"^4.0.17"},"peerDependencies":{"keyv":"^6.0.0-alpha.1"},"tsd":{"directory":"test"},"engines":{"node":">= 18"},"scripts":{"build":"rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean","lint":"biome check --write --error-on-warnings","lint:ci":"biome check --error-on-warnings","test":"pnpm lint && vitest run --coverage","test:ci":"pnpm lint:ci && vitest --run --sequence.setupFiles=list --coverage","clean":"rimraf ./node_modules ./coverage ./dist"},"readmeFilename":"README.md","_id":"@keyv/bigmap@6.0.0-alpha.1","_integrity":"sha512-u+WJT1fA5YvHG3ml/iHTrfzbDZcwIT0gGloynqw+5XNxKCGWFGAaMOW+7NijpfUJbLTVxvJc/ozWrxxqFb3o7g==","_resolved":"/tmp/80c251112bf4ba8b403a87552ffedfa7/keyv-bigmap-6.0.0-alpha.1.tgz","_from":"file:keyv-bigmap-6.0.0-alpha.1.tgz","_nodeVersion":"24.13.1","_npmVersion":"11.8.0","dist":{"shasum":"830cdb9db7d619ec88ca24495e43c99063e0cad8","size":9512,"noattachment":false,"key":"/@keyv/bigmap/-/@keyv/bigmap-6.0.0-alpha.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@keyv/bigmap/download/@keyv/bigmap-6.0.0-alpha.1.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bigmap_6.0.0-alpha.1_1772070176236_0.3384426739325501"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-02-26T01:42:56.407Z","publish_time":1772070176407,"_source_registry_name":"default","_cnpm_publish_time":1772070176407},"1.3.1":{"name":"@keyv/bigmap","version":"1.3.1","description":"Bigmap for Keyv","type":"module","main":"dist/index.js","module":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"},"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"}}},"repository":{"type":"git","url":"git+https://github.com/jaredwray/keyv.git"},"keywords":["bigmap","keyv","key","value","store","cache","ttl"],"author":{"name":"Jared Wray","email":"me@jaredwray.com","url":"http://jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/keyv/issues"},"homepage":"https://github.com/jaredwray/keyv","dependencies":{"hashery":"^1.4.0","hookified":"^1.15.0"},"devDependencies":{"@biomejs/biome":"^2.3.11","@faker-js/faker":"^10.2.0","@vitest/coverage-v8":"^4.0.17","rimraf":"^6.1.2","tsd":"^0.33.0","vitest":"^4.0.17"},"peerDependencies":{"keyv":"^5.6.0"},"tsd":{"directory":"test"},"engines":{"node":">= 18"},"scripts":{"build":"rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean","lint":"biome check --write --error-on-warnings","lint:ci":"biome check --error-on-warnings","test":"pnpm lint && vitest run --coverage","test:ci":"pnpm lint:ci && vitest --run --sequence.setupFiles=list --coverage","clean":"rimraf ./node_modules ./coverage ./dist"},"_id":"@keyv/bigmap@1.3.1","_integrity":"sha512-WbzE9sdmQtKy8vrNPa9BRnwZh5UF4s1KTmSK0KUVLo3eff5BlQNNWDnFOouNpKfPKDnms9xynJjsMYjMaT/aFQ==","_resolved":"/private/var/folders/q4/x95kq1ln6cd7rrnct9cby32r0000gn/T/5ca707b089a7662c597e0dd7ff5b1027/keyv-bigmap-1.3.1.tgz","_from":"file:keyv-bigmap-1.3.1.tgz","_nodeVersion":"22.12.0","_npmVersion":"11.6.0","dist":{"shasum":"fc82fa83947e7ff68c6798d08907db842771ef2c","size":9505,"noattachment":false,"key":"/@keyv/bigmap/-/@keyv/bigmap-1.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@keyv/bigmap/download/@keyv/bigmap-1.3.1.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bigmap_1.3.1_1768956462234_0.4500670262808315"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-01-21T00:47:42.392Z","publish_time":1768956462392,"_source_registry_name":"default","_cnpm_publish_time":1768956462392},"1.3.0":{"name":"@keyv/bigmap","version":"1.3.0","description":"Bigmap for Keyv","type":"module","main":"dist/index.js","module":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"},"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"}}},"repository":{"type":"git","url":"git+https://github.com/jaredwray/keyv.git"},"keywords":["bigmap","keyv","key","value","store","cache","ttl"],"author":{"name":"Jared Wray","email":"me@jaredwray.com","url":"http://jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/keyv/issues"},"homepage":"https://github.com/jaredwray/keyv","dependencies":{"hashery":"^1.2.0","hookified":"^1.13.0"},"devDependencies":{"@biomejs/biome":"^2.3.6","@faker-js/faker":"^10.1.0","@vitest/coverage-v8":"^4.0.10","rimraf":"^6.1.0","tsd":"^0.33.0","vitest":"^4.0.10"},"peerDependencies":{"keyv":"^5.5.4"},"tsd":{"directory":"test"},"engines":{"node":">= 18"},"scripts":{"build":"rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean","lint":"biome check --write --error-on-warnings","lint:ci":"biome check --error-on-warnings","test":"pnpm lint && vitest run --coverage","test:ci":"pnpm lint:ci && vitest --run --sequence.setupFiles=list --coverage","clean":"rimraf ./node_modules ./coverage ./dist"},"_id":"@keyv/bigmap@1.3.0","_integrity":"sha512-KT01GjzV6AQD5+IYrcpoYLkCu1Jod3nau1Z7EsEuViO3TZGRacSbO9MfHmbJ1WaOXFtWLxPVj169cn2WNKPkIg==","_resolved":"/private/var/folders/q4/x95kq1ln6cd7rrnct9cby32r0000gn/T/b033060743e5ab8702bc3df1c6cb8378/keyv-bigmap-1.3.0.tgz","_from":"file:keyv-bigmap-1.3.0.tgz","_nodeVersion":"22.12.0","_npmVersion":"11.6.0","dist":{"shasum":"f06d9bb38488a59f012cd2758e6f429dfd312fb5","size":9500,"noattachment":false,"key":"/@keyv/bigmap/-/@keyv/bigmap-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@keyv/bigmap/download/@keyv/bigmap-1.3.0.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bigmap_1.3.0_1763449547044_0.5863910369665202"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-11-18T07:05:47.253Z","publish_time":1763449547253,"_source_registry_name":"default","_cnpm_publish_time":1763449547253},"1.2.0":{"name":"@keyv/bigmap","version":"1.2.0","description":"Bigmap for Keyv","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/keyv.git"},"keywords":["bigmap","keyv","key","value","store","cache","ttl"],"author":{"name":"Jared Wray","email":"me@jaredwray.com","url":"http://jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/keyv/issues"},"homepage":"https://github.com/jaredwray/keyv","dependencies":{"hashery":"^1.2.0","hookified":"^1.12.2"},"devDependencies":{"@biomejs/biome":"^2.2.6","@faker-js/faker":"^10.1.0","@vitest/coverage-v8":"^3.2.4","rimraf":"^6.0.1","tsd":"^0.33.0","vitest":"^3.2.4"},"peerDependencies":{"keyv":"^5.5.4"},"tsd":{"directory":"test"},"engines":{"node":">= 18"},"scripts":{"build":"rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean","lint":"biome check --write --error-on-warnings","lint:ci":"biome check --error-on-warnings","test":"pnpm lint && vitest run --coverage","test:ci":"pnpm lint:ci && vitest --run --sequence.setupFiles=list --coverage","clean":"rimraf ./node_modules ./coverage ./dist"},"_id":"@keyv/bigmap@1.2.0","_integrity":"sha512-4Lme8NejkyetZ9oJ6u8NSf0iJEFFt7I+tyDI48wZlaFmbhDEh4nZg7bEPFPwCWkpIuL50/ukWBC9AHQTmdJLUA==","_resolved":"/private/var/folders/h1/n3vxgc0n1sn5_9pxftc4p6l80000gn/T/4384be68a794eaf3fa70b565aab4852c/keyv-bigmap-1.2.0.tgz","_from":"file:keyv-bigmap-1.2.0.tgz","_nodeVersion":"20.17.0","_npmVersion":"11.4.1","dist":{"shasum":"a318d465cf78b67c40d39a8c83ab8dfcc8e9c944","size":9484,"noattachment":false,"key":"/@keyv/bigmap/-/@keyv/bigmap-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@keyv/bigmap/download/@keyv/bigmap-1.2.0.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bigmap_1.2.0_1763064796154_0.595138647545931"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-11-13T20:13:16.342Z","publish_time":1763064796342,"_source_registry_name":"default","_cnpm_publish_time":1763064796342},"1.1.0":{"name":"@keyv/bigmap","version":"1.1.0","description":"Bigmap for Keyv","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/keyv.git"},"keywords":["bigmap","keyv","key","value","store","cache","ttl"],"author":{"name":"Jared Wray","email":"me@jaredwray.com","url":"http://jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/keyv/issues"},"homepage":"https://github.com/jaredwray/keyv","dependencies":{"hookified":"^1.12.2"},"devDependencies":{"@biomejs/biome":"^2.2.6","@faker-js/faker":"^10.1.0","@vitest/coverage-v8":"^3.2.4","rimraf":"^6.0.1","tsd":"^0.33.0","vitest":"^3.2.4"},"peerDependencies":{"keyv":"^5.5.3"},"tsd":{"directory":"test"},"engines":{"node":">= 18"},"scripts":{"build":"rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean","lint":"biome check --write --error-on-warnings","lint:ci":"biome check --error-on-warnings","test":"pnpm lint && vitest run --coverage","test:ci":"pnpm lint:ci && vitest --run --sequence.setupFiles=list --coverage","clean":"rimraf ./node_modules ./coverage ./dist"},"_id":"@keyv/bigmap@1.1.0","_integrity":"sha512-MX7XIUNwVRK+hjZcAbNJ0Z8DREo+Weu9vinBOjGU1thEi9F6vPhICzBbk4CCf3eEefKRz7n6TfZXwUFZTSgj8Q==","_resolved":"/private/var/folders/h1/n3vxgc0n1sn5_9pxftc4p6l80000gn/T/4e0ad5d555ff88607e2c2fbb1d57d736/keyv-bigmap-1.1.0.tgz","_from":"file:keyv-bigmap-1.1.0.tgz","_nodeVersion":"20.17.0","_npmVersion":"11.4.1","dist":{"shasum":"e22ca78123d898b4317854854f3cc9cac8e9af74","size":8602,"noattachment":false,"key":"/@keyv/bigmap/-/@keyv/bigmap-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@keyv/bigmap/download/@keyv/bigmap-1.1.0.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bigmap_1.1.0_1760821919103_0.5596090662275746"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-10-18T21:11:59.294Z","publish_time":1760821919294,"_source_registry_name":"default","_cnpm_publish_time":1760821919294},"1.0.3":{"name":"@keyv/bigmap","version":"1.0.3","description":"Bigmap for Keyv","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/keyv.git"},"keywords":["bigmap","keyv","key","value","store","cache","ttl"],"author":{"name":"Jared Wray","email":"me@jaredwray.com","url":"http://jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/keyv/issues"},"homepage":"https://github.com/jaredwray/keyv","dependencies":{"hookified":"^1.12.1"},"devDependencies":{"@biomejs/biome":"^2.2.5","@faker-js/faker":"^10.0.0","@vitest/coverage-v8":"^3.2.4","rimraf":"^6.0.1","tsd":"^0.33.0","vitest":"^3.2.4"},"tsd":{"directory":"test"},"engines":{"node":">= 18"},"scripts":{"build":"rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean","lint":"biome check --write --error-on-warnings","lint:ci":"biome check --error-on-warnings","test":"pnpm lint && vitest run --coverage","test:ci":"pnpm lint:ci && vitest --run --sequence.setupFiles=list --coverage","clean":"rimraf ./node_modules ./coverage ./dist"},"_id":"@keyv/bigmap@1.0.3","_integrity":"sha512-jUEkNlnE9tYzX2AIBeoSe1gVUvSOfIOQ5EFPL5Un8cFHGvjD9L/fxpxlS1tEivRLHgapO2RZJ3D93HYAa049pg==","_resolved":"/private/var/folders/q4/x95kq1ln6cd7rrnct9cby32r0000gn/T/1f212e869c6407040f969318ad63c785/keyv-bigmap-1.0.3.tgz","_from":"file:keyv-bigmap-1.0.3.tgz","_nodeVersion":"22.12.0","_npmVersion":"11.6.0","dist":{"shasum":"845aafa65cd72bdd5fcc1a0e3fe707894c47d7a4","size":5360,"noattachment":false,"key":"/@keyv/bigmap/-/@keyv/bigmap-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@keyv/bigmap/download/@keyv/bigmap-1.0.3.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bigmap_1.0.3_1760073524533_0.008829527779797841"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-10-10T05:18:44.718Z","publish_time":1760073524718,"_source_registry_name":"default","_cnpm_publish_time":1760073524718},"1.0.2":{"name":"@keyv/bigmap","version":"1.0.2","description":"Bigmap for Keyv","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/keyv.git"},"keywords":["bigmap","keyv","key","value","store","cache","ttl"],"author":{"name":"Jared Wray","email":"me@jaredwray.com","url":"http://jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/keyv/issues"},"homepage":"https://github.com/jaredwray/keyv","dependencies":{"hookified":"^1.12.1"},"devDependencies":{"@biomejs/biome":"^2.2.4","@faker-js/faker":"^10.0.0","@vitest/coverage-v8":"^3.2.4","rimraf":"^6.0.1","tsd":"^0.33.0","vitest":"^3.2.4"},"tsd":{"directory":"test"},"engines":{"node":">= 18"},"scripts":{"build":"rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean","lint":"biome check --write --error-on-warnings","lint:ci":"biome check --error-on-warnings","test":"pnpm lint && vitest run --coverage","test:ci":"pnpm lint:ci && vitest --run --sequence.setupFiles=list --coverage","clean":"rimraf ./node_modules ./coverage ./dist"},"_id":"@keyv/bigmap@1.0.2","_integrity":"sha512-KR03xkEZlAZNF4IxXgVXb+uNIVNvwdh8UwI0cnc7WI6a+aQcDp8GL80qVfeB4E5NpsKJzou5jU0r6yLSSbMOtA==","_resolved":"/private/var/folders/q4/x95kq1ln6cd7rrnct9cby32r0000gn/T/f84aa40e5995f1c6356427a776c8df65/keyv-bigmap-1.0.2.tgz","_from":"file:keyv-bigmap-1.0.2.tgz","_nodeVersion":"22.12.0","_npmVersion":"11.6.0","dist":{"shasum":"9480d168c99a4a6c2fd3b677387cd922aa82a470","size":5345,"noattachment":false,"key":"/@keyv/bigmap/-/@keyv/bigmap-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@keyv/bigmap/download/@keyv/bigmap-1.0.2.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bigmap_1.0.2_1758498175268_0.3603158326953606"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-21T23:42:55.482Z","publish_time":1758498175482,"_source_registry_name":"default","_cnpm_publish_time":1758498175482},"1.0.1":{"name":"@keyv/bigmap","version":"1.0.1","description":"Bigmap for Keyv","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/keyv.git"},"keywords":["bigmap","keyv","key","value","store","cache","ttl"],"author":{"name":"Jared Wray","email":"me@jaredwray.com","url":"http://jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/keyv/issues"},"homepage":"https://github.com/jaredwray/keyv","dependencies":{"hookified":"^1.12.0"},"devDependencies":{"@biomejs/biome":"^2.2.4","@faker-js/faker":"^10.0.0","@vitest/coverage-v8":"^3.2.4","rimraf":"^6.0.1","tsd":"^0.33.0","vitest":"^3.2.4"},"tsd":{"directory":"test"},"engines":{"node":">= 20"},"scripts":{"build":"rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean","lint":"biome check --write --error-on-warnings","lint:ci":"biome check --error-on-warnings","test":"pnpm lint && vitest run --coverage","test:ci":"pnpm lint:ci && vitest --run --sequence.setupFiles=list --coverage","clean":"rimraf ./node_modules ./coverage ./dist"},"_id":"@keyv/bigmap@1.0.1","_integrity":"sha512-dZ7TMshK6brpuGPPRoq4pHNzNH4KTWaxVPB7KEnPErlgJpc+jG1Oyx3sw6nBFiZ0OCKwC1zU6skMEG7H421f9g==","_resolved":"/private/var/folders/q4/x95kq1ln6cd7rrnct9cby32r0000gn/T/21e1d6ee3d8435c3b215f41b17f0ac59/keyv-bigmap-1.0.1.tgz","_from":"file:keyv-bigmap-1.0.1.tgz","_nodeVersion":"22.12.0","_npmVersion":"11.6.0","dist":{"shasum":"fa673178ff6515cc908af95b49c94f96aca1fb0d","size":5343,"noattachment":false,"key":"/@keyv/bigmap/-/@keyv/bigmap-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@keyv/bigmap/download/@keyv/bigmap-1.0.1.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bigmap_1.0.1_1758142714283_0.813579812049009"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-17T20:58:34.503Z","publish_time":1758142714503,"_source_registry_name":"default","_cnpm_publish_time":1758142714503},"1.0.0":{"name":"@keyv/bigmap","version":"1.0.0","description":"Bigmap for Keyv","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/keyv.git"},"keywords":["bigmap","keyv","key","value","store","cache","ttl"],"author":{"name":"Jared Wray","email":"me@jaredwray.com","url":"http://jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/keyv/issues"},"homepage":"https://github.com/jaredwray/keyv","dependencies":{"hookified":"^1.10.0"},"devDependencies":{"@faker-js/faker":"^9.9.0","@vitest/coverage-v8":"^3.2.4","rimraf":"^6.0.1","tsd":"^0.32.0","vitest":"^3.2.4","xo":"^1.1.1"},"tsd":{"directory":"test"},"engines":{"node":">= 20"},"scripts":{"build":"rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean","test":"xo --fix && vitest run --coverage","test:ci":"xo && vitest --run --sequence.setupFiles=list --coverage","clean":"rimraf ./node_modules ./coverage ./dist"},"_id":"@keyv/bigmap@1.0.0","_integrity":"sha512-N2UsRSXlWwbvYKdFVS7sKqj6oXGegELh+zr9VripWDc8grsq8KBNp8JHI+9AQuUEFiM1S7+tm6lLp/lmbBCqCw==","_resolved":"/private/var/folders/q4/x95kq1ln6cd7rrnct9cby32r0000gn/T/ef3d8cf2a76fe335cb4eba7a2e717ab3/keyv-bigmap-1.0.0.tgz","_from":"file:keyv-bigmap-1.0.0.tgz","_nodeVersion":"22.12.0","_npmVersion":"11.4.2","dist":{"shasum":"15a3cfc41d86d9059f9b813f1ccabfef170e9371","size":5251,"noattachment":false,"key":"/@keyv/bigmap/-/@keyv/bigmap-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@keyv/bigmap/download/@keyv/bigmap-1.0.0.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bigmap_1.0.0_1752951788097_0.5721981711763124"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-07-19T19:03:08.277Z","publish_time":1752951788277,"_source_registry_name":"default","_cnpm_publish_time":1752951788277}},"readme":"# @keyv/bigmap [<img width=\"100\" align=\"right\" src=\"https://jaredwray.com/images/keyv-symbol.svg\" alt=\"keyv\">](https://github.com/jaredwra/keyv)\n\n> Bigmap for Keyv\n\n[![build](https://github.com/jaredwray/keyv/actions/workflows/tests.yaml/badge.svg)](https://github.com/jaredwray/keyv/actions/workflows/tests.yaml)\n[![codecov](https://codecov.io/gh/jaredwray/keyv/branch/main/graph/badge.svg?token=bRzR3RyOXZ)](https://codecov.io/gh/jaredwray/keyv)\n[![npm](https://img.shields.io/npm/v/@keyv/bigmap.svg)](https://www.npmjs.com/package/@keyv/bigmap)\n[![npm](https://img.shields.io/npm/dm/@keyv/bigmap)](https://npmjs.com/package/@keyv/bigmap)\n\n# Features\n* Based on the Map interface and uses the same API.\n* Lightweight with no dependencies.\n* Scales to past the 17 million key limit of a regular Map.\n* Uses a hash `djb2Hash` for fast key lookups.\n* Ability to use your own hash function.\n* Built in Typescript and Generics for type safety.\n* Used in `@cacheable/memory` for scalable in-memory caching.\n* Maintained regularly with a focus on performance and reliability.\n\n# Table of Contents\n- [Features](#features)\n- [Installation](#installation)\n- [Overview](#overview)\n- [Basic Usage](#basic-usage)\n- [Custom Store Size](#custom-store-size)\n- [Custom Hash Function](#custom-hash-function)\n- [Iteration](#iteration)\n\t- [For...of Loop](#forof-loop)\n\t- [forEach](#foreach)\n\t- [Keys, Values, and Entries](#keys-values-and-entries)\n- [Advanced Features](#advanced-features)\n\t- [Type Safety with Generics](#type-safety-with-generics)\n\t- [Large-Scale Data](#large-scale-data)\n- [Using with Keyv](#using-with-keyv)\n\t- [createKeyv](#createkeyv)\n\t- [With Custom Options](#with-custom-options)\n\t- [Type Safety](#type-safety)\n- [Integration with Keyv Ecosystem](#integration-with-keyv-ecosystem)\n- [API](#api)\n\t- [Constructor](#constructor)\n\t- [Properties](#properties)\n\t- [Methods](#methods)\n\t\t- [set](#set)\n\t\t- [get](#get)\n\t\t- [has](#has)\n\t\t- [delete](#delete)\n\t\t- [clear](#clear)\n\t\t- [forEach](#foreach)\n\t\t- [keys](#keys)\n\t\t- [values](#values)\n\t\t- [entries](#entries)\n\t\t- [Symbol.iterator](#symboliterator)\n\t\t- [getStore](#getstorekey)\n\t\t- [getStoreMap](#getstoremapindex)\n\t\t- [initStore](#initstore)\n- [Types](#types)\n- [StoreHashFunction](#storehashfunction)\n- [defaultHashFunction(key, storeSize)](#defaulthashfunctionkey-storesize)\n- [Contributing](#contributing)\n- [License](#license)\n\n# Installation\n\n```bash\nnpm install --save keyv @keyv/bigmap\n```\n\n# Overview\n\nBigMap is a scalable Map implementation that overcomes JavaScript's built-in Map limit of approximately 17 million entries. It uses a distributed hash approach with multiple internal Map instances.\n\n# Basic Usage\n\n```typescript\nimport { BigMap } from '@keyv/bigmap';\n\n// Create a new BigMap\nconst bigMap = new BigMap<string, number>();\n\n// Set values\nbigMap.set('key1', 100);\nbigMap.set('key2', 200);\n\n// Get values\nconst value = bigMap.get('key1'); // 100\n\n// Check if key exists\nbigMap.has('key1'); // true\n\n// Delete a key\nbigMap.delete('key1'); // true\n\n// Get size\nconsole.log(bigMap.size); // 1\n\n// Clear all entries\nbigMap.clear();\n```\n\n# Custom Store Size\n\nBy default, BigMap uses 4 internal Map instances. You can configure this:\n\n```typescript\nconst bigMap = new BigMap<string, number>({ storeSize: 10 });\n```\n\n**Note:** Changing the `storeSize` after initialization will clear all entries.\n\n# Custom Hash Function\n\nProvide your own hash function for key distribution:\n\n```typescript\nconst customHashFunction = (key: string, storeSize: number) => {\n  return key.length % storeSize;\n};\n\nconst bigMap = new BigMap<string, string>({\n  storeHashFunction: customHashFunction\n});\n```\n\n## Using Hashery for Hash Functions\n\n[Hashery](https://github.com/jaredwray/hashery) is a powerful hashing library that provides multiple hash algorithms. You can use it for better key distribution and it is available as an export:\n\n```typescript\nimport { BigMap, Hashery } from '@keyv/bigmap';\n\nconst hashery = new Hashery();\n\n// Using Hashery's toNumberSync for deterministic key distribution\nconst bigMap = new BigMap<string, string>({\n  storeHashFunction: (key: string, storeSize: number) => {\n    return hashery.toNumberSync(key, { min: 0, max: storeSize - 1 });\n  }\n});\n\n// You can also use different algorithms\nconst hasheryFnv1 = new Hashery({ defaultAlgorithmSync: 'fnv1' });\n\nconst bigMapWithFnv1 = new BigMap<string, string>({\n  storeHashFunction: (key: string, storeSize: number) => {\n    return hasheryFnv1.toNumberSync(key, { min: 0, max: storeSize - 1 });\n  }\n});\n```\n\nHashery supports multiple synchronous hash algorithms:\n- **djb2** - Fast hash function (default)\n- **fnv1** - Excellent distribution for hash tables\n- **murmer** - MurmurHash algorithm\n- **crc32** - Cyclic Redundancy Check\n\n# Iteration\n\nBigMap supports all standard Map iteration methods:\n\n## For...of Loop\n\n```typescript\nconst bigMap = new BigMap<string, number>();\nbigMap.set('a', 1);\nbigMap.set('b', 2);\n\nfor (const [key, value] of bigMap) {\n  console.log(key, value);\n}\n```\n\n## forEach\n\n```typescript\nbigMap.forEach((value, key) => {\n  console.log(key, value);\n});\n\n// With custom context\nconst context = { sum: 0 };\nbigMap.forEach(function(value) {\n  this.sum += value;\n}, context);\n```\n\n## Keys, Values, and Entries\n\n```typescript\n// Iterate over keys\nfor (const key of bigMap.keys()) {\n  console.log(key);\n}\n\n// Iterate over values\nfor (const value of bigMap.values()) {\n  console.log(value);\n}\n\n// Iterate over entries\nfor (const [key, value] of bigMap.entries()) {\n  console.log(key, value);\n}\n```\n\n# Advanced Features\n\n## Type Safety with Generics\n\n```typescript\ninterface User {\n  id: number;\n  name: string;\n}\n\nconst userMap = new BigMap<string, User>();\nuserMap.set('user1', { id: 1, name: 'Alice' });\n```\n\n## Large-Scale Data\n\nBigMap is designed to handle millions of entries:\n\n```typescript\nconst bigMap = new BigMap<string, number>({ storeSize: 16 });\n\n// Add 20+ million entries without hitting Map limits\nfor (let i = 0; i < 20000000; i++) {\n  bigMap.set(`key${i}`, i);\n}\n\nconsole.log(bigMap.size); // 20000000\n```\n\n# Using with Keyv\n\nBigMap can be used as a storage adapter for [Keyv](https://github.com/jaredwray/keyv), providing a scalable in-memory store with TTL support.\n\n## createKeyv\n\nThe `createKeyv` function creates a Keyv instance with BigMap as the storage adapter.\n\n**Parameters:**\n- `options` (optional): BigMap configuration options\n  - `storeSize` (number): Number of internal Map instances. Default: `4`\n  - `storeHashFunction` (StoreHashFunction): Custom hash function for key distribution\n\n**Returns:** `Keyv` instance with BigMap adapter\n\n**Example:**\n\n```typescript\nimport { createKeyv } from '@keyv/bigmap';\n\n// Basic usage\nconst keyv = createKeyv();\n\n// Set with TTL (in milliseconds)\nawait keyv.set('user:123', { name: 'Alice', age: 30 }, 60000); // Expires in 60 seconds\n\n// Get value\nconst user = await keyv.get('user:123');\nconsole.log(user); // { name: 'Alice', age: 30 }\n\n// Check if key exists\nconst exists = await keyv.has('user:123');\n\n// Delete key\nawait keyv.delete('user:123');\n\n// Clear all keys\nawait keyv.clear();\n```\n\n## With Custom Options\n\n```typescript\nimport { createKeyv } from '@keyv/bigmap';\n\n// Create with custom store size for better performance with millions of keys\nconst keyv = createKeyv({ storeSize: 16 });\n\n// With custom hash function\nconst keyv = createKeyv({\n  storeSize: 8,\n  storeHashFunction: (key, storeSize) => {\n    // Custom distribution logic\n    return key.length % storeSize;\n  }\n});\n```\n\n## Type Safety\n\n```typescript\nimport { createKeyv } from '@keyv/bigmap';\n\ninterface Product {\n  id: string;\n  name: string;\n  price: number;\n}\n\nconst keyv = createKeyv<string, Product>();\n\nawait keyv.set('product:1', {\n  id: '1',\n  name: 'Laptop',\n  price: 999\n});\n\nconst product = await keyv.get<Product>('product:1');\n```\n\n# Integration with Keyv Ecosystem\n\nBigMap works seamlessly with the Keyv ecosystem:\n\n```typescript\nimport { createKeyv } from '@keyv/bigmap';\n\nconst cache = createKeyv({ storeSize: 16 });\n\n// Use with namespaces\nconst users = cache.namespace('users');\nconst products = cache.namespace('products');\n\nawait users.set('123', { name: 'Alice' });\nawait products.set('456', { name: 'Laptop' });\n\n// Iterate over keys\nfor await (const [key, value] of cache.iterator()) {\n  console.log(key, value);\n}\n```\n\n# API\n\n## Constructor\n\n`new BigMap<K, V>(options?)`\n\nCreates a new BigMap instance.\n\n**Parameters:**\n- `options` (optional): Configuration options\n  - `storeSize` (number): Number of internal Map instances to use. Default: `4`. Must be at least 1.\n  - `storeHashFunction` (StoreHashFunction): Custom hash function for key distribution. Default: `defaultHashFunction`\n\n**Example:**\n```typescript\nconst bigMap = new BigMap<string, number>();\nconst customBigMap = new BigMap<string, number>({\n  storeSize: 10,\n  storeHashFunction: (key, storeSize) => key.length % storeSize\n});\n```\n\n## Properties\n\n| Property | Type | Access | Description |\n|----------|------|--------|-------------|\n| `size` | `number` | Read-only | Gets the total number of entries in the BigMap. |\n| `storeSize` | `number` | Read/Write | Gets or sets the number of internal Map instances. **Note:** Setting this will clear all entries. Default: `4` |\n| `storeHashFunction` | `StoreHashFunction \\| undefined` | Read/Write | Gets or sets the hash function used for key distribution. |\n| `store` | `Array<Map<K, V>>` | Read-only | Gets the internal array of Map instances. |\n\n**Examples:**\n```typescript\nconst bigMap = new BigMap<string, number>();\n\n// size property\nbigMap.set('key1', 100);\nconsole.log(bigMap.size); // 1\n\n// storeSize property\nconsole.log(bigMap.storeSize); // 4 (default)\nbigMap.storeSize = 8; // Changes size and clears all entries\n\n// storeHashFunction property\nbigMap.storeHashFunction = (key, storeSize) => key.length % storeSize;\n\n// store property\nconsole.log(bigMap.store.length); // 8\n```\n\n## Methods\n\n### set\n\nSets the value for a key in the map.\n\n**Parameters:**\n- `key` (K): The key to set\n- `value` (V): The value to associate with the key\n\n**Returns:** `Map<K, V>` - The internal Map instance where the key was stored\n\n**Example:**\n```typescript\nbigMap.set('user123', { name: 'Alice' });\n```\n\n### get\n\nGets the value associated with a key.\n\n**Parameters:**\n- `key` (K): The key to retrieve\n\n**Returns:** `V | undefined` - The value, or undefined if not found\n\n**Example:**\n```typescript\nconst value = bigMap.get('user123');\n```\n\n### has\n\nChecks if a key exists in the map.\n\n**Parameters:**\n- `key` (K): The key to check\n\n**Returns:** `boolean` - True if the key exists, false otherwise\n\n**Example:**\n```typescript\nif (bigMap.has('user123')) {\n  console.log('User exists');\n}\n```\n\n### delete\n\nDeletes a key-value pair from the map.\n\n**Parameters:**\n- `key` (K): The key to delete\n\n**Returns:** `boolean` - True if the entry was deleted, false if the key was not found\n\n**Example:**\n```typescript\nconst deleted = bigMap.delete('user123');\n```\n\n### clear\n\nRemoves all entries from the map.\n\n**Returns:** `void`\n\n**Example:**\n```typescript\nbigMap.clear();\nconsole.log(bigMap.size); // 0\n```\n\n### forEach\n\nExecutes a provided function once for each key-value pair.\n\n**Parameters:**\n- `callbackfn` (function): Function to execute for each entry\n  - `value` (V): The value of the current entry\n  - `key` (K): The key of the current entry\n  - `map` (`Map<K, V>`): The BigMap instance\n- `thisArg` (optional): Value to use as `this` when executing the callback\n\n**Returns:** `void`\n\n**Example:**\n```typescript\nbigMap.forEach((value, key) => {\n  console.log(`${key}: ${value}`);\n});\n\n// With custom context\nconst context = { total: 0 };\nbigMap.forEach(function(value) {\n  this.total += value;\n}, context);\n```\n\n### keys\n\nReturns an iterator of all keys in the map.\n\n**Returns:** `IterableIterator<K>`\n\n**Example:**\n```typescript\nfor (const key of bigMap.keys()) {\n  console.log(key);\n}\n```\n\n### values\n\nReturns an iterator of all values in the map.\n\n**Returns:** `IterableIterator<V>`\n\n**Example:**\n```typescript\nfor (const value of bigMap.values()) {\n  console.log(value);\n}\n```\n\n### entries\n\nReturns an iterator of all key-value pairs in the map.\n\n**Returns:** `IterableIterator<[K, V]>`\n\n**Example:**\n```typescript\nfor (const [key, value] of bigMap.entries()) {\n  console.log(key, value);\n}\n```\n\n### Symbol.iterator\n\nReturns an iterator for the map (same as `entries()`). Enables `for...of` loops.\n\n**Returns:** `IterableIterator<[K, V]>`\n\n**Example:**\n```typescript\nfor (const [key, value] of bigMap) {\n  console.log(key, value);\n}\n```\n\n### getStore\n\nGets the internal Map instance for a specific key.\n\n**Parameters:**\n- `key` (K): The key to find the store for\n\n**Returns:** `Map<K, V>` - The internal Map instance\n\n**Example:**\n```typescript\nconst store = bigMap.getStore('user123');\n```\n\n### getStoreMap\n\nGets the internal Map instance at a specific index.\n\n**Parameters:**\n- `index` (number): The index of the Map to retrieve (0 to storeSize - 1)\n\n**Returns:** `Map<K, V>` - The Map at the specified index\n\n**Throws:** Error if index is out of bounds\n\n**Example:**\n```typescript\nconst firstMap = bigMap.getStoreMap(0);\n```\n\n### initStore\n\nInitializes the internal store with empty Map instances. Called automatically during construction.\n\n**Returns:** `void`\n\n## Types\n\n### StoreHashFunction\n\nType definition for custom hash functions.\n\n```typescript\ntype StoreHashFunction = (key: string, storeSize: number) => number;\n```\n\n**Parameters:**\n- `key` (string): The key to hash (converted to string)\n- `storeSize` (number): The number of stores (adjusted for zero-based index)\n\n**Returns:** `number` - The index of the store to use (0 to storeSize - 1)\n\n### defaultHashFunction\n\nThe default hash function using DJB2 algorithm from [Hashery](https://npmjs.com/package/hashery):\n\n**Example:**\n```typescript\nimport { defaultHashFunction } from '@keyv/bigmap';\n\nconst index = defaultHashFunction('myKey', 4);\n```\n\n### djb2Hash\n\nDJB2 hash algorithm implementation.\n\n**Parameters:**\n- `string` (string): The string to hash\n- `min` (number): Minimum value. Default: `0`\n- `max` (number): Maximum value. Default: `10`\n\n**Returns:** `number` - Hash value within the specified range\n\n**Example:**\n```typescript\nimport { djb2Hash } from '@keyv/bigmap';\n\nconst hash = djb2Hash('myKey', 0, 10);\n```\n\n# Contributing\n\nPlease see our [contributing](https://github.com/jaredwray/keyv/blob/main/CONTRIBUTING.md) guide.\n\n# License\n\n[MIT © Jared Wray](LICENSE)\n","_attachments":{},"homepage":"https://github.com/jaredwray/keyv","bugs":{"url":"https://github.com/jaredwray/keyv/issues"},"license":"MIT"}