{"_id":"memory-cache-node","_rev":"7-40901c97d41682aa71c0f1304c04d5ff","name":"memory-cache-node","dist-tags":{"latest":"1.4.0"},"versions":{"1.0.0":{"name":"memory-cache-node","version":"1.0.0","description":"Fast, modern and event loop non-blocking memory cache for Node.js and browse","author":{"name":"Petri Silen","email":"petri.silen@silensoft.com"},"engines":{"node":">= 12.19"},"license":"MIT","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/pksilen/memory-cache-node.git"},"bugs":{"url":"https://github.com/pksilen/memory-cache-node/issues"},"keywords":["cache","memory","fast"],"scripts":{"prebuild":"rimraf lib","lint":"eslint ./src --cache --fix --ext .ts","format":"prettier --write \"src/**/*.ts\"","build":"tsc","test":"jest","test:coverage":"jest --coverage","prepublishOnly":"npm run build && npm test","prepare":"husky install"},"devDependencies":{"@types/jest":"^27.0.1","@types/node":"^16.7.13","@typescript-eslint/eslint-plugin":"^4.31.0","@typescript-eslint/parser":"^4.31.0","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.24.2","husky":"^7.0.2","jest":"^27.1.1","lint-staged":"^11.1.2","prettier":"^2.3.2","ts-jest":"^27.0.5","typescript":"^4.4.2"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"coverageDirectory":"../coverage","testEnvironment":"node"},"lint-staged":{"*.ts":["npm run lint","npm run format"]},"gitHead":"d56fe9f4e2547107bf1b56cae8116804d0ec8c81","homepage":"https://github.com/pksilen/memory-cache-node#readme","_id":"memory-cache-node@1.0.0","_nodeVersion":"12.19.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-tEtrlarlC5t9VMLcA3jy3ACVgR7EO3BfC768gvhMhcon6wGlZmZrkRgf6cL6NVuolBdNA7Uhiob+ON8412OEsg==","shasum":"528c42f69b0f03d30ea8522d3ef94c3722a2fd6e","tarball":"https://registry.npmjs.org/memory-cache-node/-/memory-cache-node-1.0.0.tgz","fileCount":10,"unpackedSize":39170,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDa8LlQDoM9kkviwEIequC7PbH6DRTcAysCJHk6V9dIFQIgQbjUbGxLHWb8JQ2YNgWqqOYnngHswqmWG0IbXatKib8="}]},"_npmUser":{"name":"pksilen","email":"petri.silen@silensoft.com"},"directories":{},"maintainers":[{"name":"pksilen","email":"petri.silen@silensoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/memory-cache-node_1.0.0_1632229648709_0.3092151236270675"},"_hasShrinkwrap":false},"1.1.0":{"name":"memory-cache-node","version":"1.1.0","description":"Fast, modern and event loop non-blocking memory cache for Node.js and browse","author":{"name":"Petri Silen","email":"petri.silen@silensoft.com"},"engines":{"node":">= 12.19"},"license":"MIT","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/pksilen/memory-cache-node.git"},"bugs":{"url":"https://github.com/pksilen/memory-cache-node/issues"},"keywords":["cache","memory","fast"],"scripts":{"prebuild":"rimraf lib","lint":"eslint ./src --cache --fix --ext .ts","format":"prettier --write \"src/**/*.ts\"","build":"tsc","test":"jest","test:coverage":"jest --coverage","prepublishOnly":"npm run build && npm test","prepare":"husky install"},"devDependencies":{"@types/jest":"^27.0.1","@types/node":"^16.7.13","@typescript-eslint/eslint-plugin":"^4.31.0","@typescript-eslint/parser":"^4.31.0","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.24.2","husky":"^7.0.2","jest":"^27.1.1","lint-staged":"^11.1.2","prettier":"^2.3.2","ts-jest":"^27.0.5","typescript":"^4.4.2"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"coverageDirectory":"../coverage","testEnvironment":"node"},"lint-staged":{"*.ts":["npm run lint","npm run format"]},"gitHead":"299fa9431d0946958523a3a74467123fbeafdafc","homepage":"https://github.com/pksilen/memory-cache-node#readme","_id":"memory-cache-node@1.1.0","_nodeVersion":"12.19.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-edVkId51Go1DWMlNzjlhgVzX7hbm27szHNeV0ztSFiALHevObI9zx6ayZrSbp5R5H2zK26jSR3XLMeWSRcpk/A==","shasum":"4014c9ba4760e754ff158b41ee737dadbe203908","tarball":"https://registry.npmjs.org/memory-cache-node/-/memory-cache-node-1.1.0.tgz","fileCount":13,"unpackedSize":50177,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDffrNf6uaK1xBzLy3SX/NwwEl1r3FqgGoWCxOGx8T/PQIhAOLxTBRwHnvsMXmxwjf9ZugvChbNYshDgC9ZIdwi8l3m"}]},"_npmUser":{"name":"pksilen","email":"petri.silen@silensoft.com"},"directories":{},"maintainers":[{"name":"pksilen","email":"petri.silen@silensoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/memory-cache-node_1.1.0_1632398194902_0.21400071223975003"},"_hasShrinkwrap":false},"1.1.1":{"name":"memory-cache-node","version":"1.1.1","description":"Fast, modern and event loop non-blocking memory cache for Node.js and browse","author":{"name":"Petri Silen","email":"petri.silen@silensoft.com"},"engines":{"node":">= 12.19"},"license":"MIT","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/pksilen/memory-cache-node.git"},"bugs":{"url":"https://github.com/pksilen/memory-cache-node/issues"},"keywords":["cache","memory","fast"],"scripts":{"prebuild":"rimraf lib","lint":"eslint ./src --cache --fix --ext .ts","format":"prettier --write \"src/**/*.ts\"","build":"tsc","test":"jest","test:coverage":"jest --coverage","prepublishOnly":"npm run build && npm test","prepare":"husky install"},"devDependencies":{"@types/jest":"^27.0.1","@types/node":"^16.7.13","@typescript-eslint/eslint-plugin":"^4.31.0","@typescript-eslint/parser":"^4.31.0","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.24.2","husky":"^7.0.2","jest":"^27.1.1","lint-staged":"^11.1.2","prettier":"^2.3.2","ts-jest":"^27.0.5","typescript":"^4.4.2"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"coverageDirectory":"../coverage","testEnvironment":"node"},"lint-staged":{"*.ts":["npm run lint","npm run format"]},"gitHead":"6a4a9519864c319e5da18abcaa2b406c26f57d92","homepage":"https://github.com/pksilen/memory-cache-node#readme","_id":"memory-cache-node@1.1.1","_nodeVersion":"12.19.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-zHoWfCihbeEhCT0GxsKgBDYsdDpyz5cojDOOcW4DGdhsFBaYNQ6/vYPUQbIzGzX243bD6U13krXcek3ZlPPMjg==","shasum":"de6ddf87c9f230e110cd0d8e70ec205d54a7eacb","tarball":"https://registry.npmjs.org/memory-cache-node/-/memory-cache-node-1.1.1.tgz","fileCount":13,"unpackedSize":50251,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD3KlK7G3FfHt5S52GgCb6z+zfWYc/Flp3oh7tI/+OHsQIhAIvFjljxAz7ajonW4NoWLxMP4/bLJ/09cobirBeHcVXr"}]},"_npmUser":{"name":"pksilen","email":"petri.silen@silensoft.com"},"directories":{},"maintainers":[{"name":"pksilen","email":"petri.silen@silensoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/memory-cache-node_1.1.1_1632398509649_0.18840296239189436"},"_hasShrinkwrap":false},"1.1.2":{"name":"memory-cache-node","version":"1.1.2","description":"Fast, modern and event loop non-blocking memory cache for Node.js and browse","author":{"name":"Petri Silen","email":"petri.silen@silensoft.com"},"engines":{"node":">= 12.19"},"license":"MIT","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/pksilen/memory-cache-node.git"},"bugs":{"url":"https://github.com/pksilen/memory-cache-node/issues"},"keywords":["cache","memory","fast"],"scripts":{"prebuild":"rimraf lib","lint":"eslint ./src --cache --fix --ext .ts","format":"prettier --write \"src/**/*.ts\"","build":"tsc","test":"jest","test:coverage":"jest --coverage","prepublishOnly":"npm run build && npm test","prepare":"husky install"},"devDependencies":{"@types/jest":"^27.0.1","@types/node":"^16.7.13","@typescript-eslint/eslint-plugin":"^4.31.0","@typescript-eslint/parser":"^4.31.0","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.24.2","husky":"^7.0.2","jest":"^27.1.1","lint-staged":"^11.1.2","prettier":"^2.3.2","ts-jest":"^27.0.5","typescript":"^4.4.2"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"coverageDirectory":"../coverage","testEnvironment":"node"},"lint-staged":{"*.ts":["npm run lint","npm run format"]},"gitHead":"b05008a6132679dd30741102a12e265ca5710bd2","homepage":"https://github.com/pksilen/memory-cache-node#readme","_id":"memory-cache-node@1.1.2","_nodeVersion":"12.19.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-sENlR0C1szZOMAUeEdJmxz6oCTgq5Gz0UUIJYu4pQUAu91NqUKWPMU4uaOeqt9V5O+/ULq7YedZEmMNpFdFYmw==","shasum":"6509fd70cbde156f91585d67c149c69e826c817c","tarball":"https://registry.npmjs.org/memory-cache-node/-/memory-cache-node-1.1.2.tgz","fileCount":13,"unpackedSize":50945,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHv8c6MfnSFPbLoVdcsDxXAiivEQvrZY6x8yg/IZcmQbAiEAvmWyXRLKZZL6NODoZW01I4OF/SwpTVkWF/MERZhq4xw="}]},"_npmUser":{"name":"pksilen","email":"petri.silen@silensoft.com"},"directories":{},"maintainers":[{"name":"pksilen","email":"petri.silen@silensoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/memory-cache-node_1.1.2_1632557577339_0.3708842862084296"},"_hasShrinkwrap":false},"1.2.0":{"name":"memory-cache-node","version":"1.2.0","description":"Fast, modern and event loop non-blocking memory cache for Node.js and browse","author":{"name":"Petri Silen","email":"petri.silen@silensoft.com"},"engines":{"node":">= 12.19"},"license":"MIT","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/pksilen/memory-cache-node.git"},"bugs":{"url":"https://github.com/pksilen/memory-cache-node/issues"},"keywords":["cache","memory","fast"],"scripts":{"prebuild":"rimraf lib","lint":"eslint ./src --cache --fix --ext .ts","format":"prettier --write \"src/**/*.ts\"","build":"tsc","test":"jest","test:coverage":"jest --coverage","prepublishOnly":"npm run build && npm test","prepare":"husky install"},"devDependencies":{"@types/jest":"^27.0.1","@types/node":"^16.7.13","@typescript-eslint/eslint-plugin":"^4.31.0","@typescript-eslint/parser":"^4.31.0","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.24.2","husky":"^7.0.2","jest":"^27.1.1","lint-staged":"^11.1.2","prettier":"^2.3.2","ts-jest":"^27.0.5","typescript":"^4.4.2"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"coverageDirectory":"../coverage","testEnvironment":"node"},"lint-staged":{"*.ts":["npm run lint","npm run format"]},"types":"./lib/index.d.ts","gitHead":"c0fd344d5744a1dc9da4b2609f9e57b1ed69fe2a","homepage":"https://github.com/pksilen/memory-cache-node#readme","_id":"memory-cache-node@1.2.0","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-ZwcCBCS4KsFsTEQwhqqksxLnGnL2fmxcF5prPCFKyzhzB7HJCrmo2XoCIui/HUCIQmam6uUvEp4zr547wbjFnw==","shasum":"50d4c404d95e464e6424bc6543215d6566a33ce0","tarball":"https://registry.npmjs.org/memory-cache-node/-/memory-cache-node-1.2.0.tgz","fileCount":13,"unpackedSize":53019,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB+0SvPePD9kczEBZoGBKhJTKn9kDi3mq6MR22MaMDDrAiAF3azyEIv6fAac3HW03hk9WXTe+gkRxswqbmYkxBI20Q=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjDkSyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqcQA//U0YVngm+7t+rGi4SDO78fXbAHPWiUxW4mVsw2XzIWKga2vHJ\r\naFquYz0dG6Gj86sN/YpnppQqFLZCat86XuCp/9TYh3t0dLRCkM0NZ6i0rHoh\r\nT/oX4lusL5MCAgEnWenR0doPkf17yI+KjZLm42Kq+LsPitj0kszj440GN0Xn\r\nQy4kKSXbvXSrmom/JoLTDyMfOMWB0i3KlBMACXobn3Yv7GgUj5l8cd/bdPVQ\r\nrh2xmJArYtSXGckz6IS8kqm5ZfO18gmO3dgBn09mYAo2y+0AtlEN1hb8Rd4o\r\n5H7s8I8RAUR3HNFD4DZl6mHsfBDjLudFNjWp3UH7sBzlrQGDj1fgC8txTfrB\r\nH1K/3BJE4vERepYxVc9TZm/ZINeRF9BbJiaHOvcpikhnA5JkqnFgexGYxej3\r\ndERP0zQjMbuxbjp5pE/lPE+xVrEMM+is+8meJDYckg/k0Nx1eHGD3JFlF9yz\r\nLnUE+McH5igjzpuXDiHSM7CoKT5E8auzbn0YPCrNlm/iNNodArph4iAc2Xee\r\nWkTlxQ0BcG0czQ2EpssM20R9dbgQ6yCVMQrWWacNPlrNOr4lmvKIqoConuuS\r\nL1zYWjbm4SVavIoNrAMnrvLjA1tsV4cgPf8HpYugO00ACgCh417uvubcAjAx\r\n0ajRi92QVpLWcAEHZ4g/1Xymzg+olxo9PjY=\r\n=1Yx5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pksilen","email":"petri.silen@silensoft.com"},"directories":{},"maintainers":[{"name":"pksilen","email":"petri.silen@silensoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/memory-cache-node_1.2.0_1661879474104_0.3306500923883211"},"_hasShrinkwrap":false},"1.3.0":{"name":"memory-cache-node","version":"1.3.0","description":"Fast, modern and event loop non-blocking memory cache for Node.js and browse","author":{"name":"Petri Silen","email":"petri.silen@silensoft.com"},"engines":{"node":">= 12.19"},"license":"MIT","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/pksilen/memory-cache-node.git"},"bugs":{"url":"https://github.com/pksilen/memory-cache-node/issues"},"keywords":["cache","memory","fast"],"scripts":{"prebuild":"rimraf lib","lint":"eslint ./src --cache --fix --ext .ts","format":"prettier --write \"src/**/*.ts\"","build":"tsc","test":"jest","test:coverage":"jest --coverage","prepublishOnly":"npm run build && npm test","prepare":"husky install"},"devDependencies":{"@types/jest":"^27.0.1","@types/node":"^16.7.13","@typescript-eslint/eslint-plugin":"^4.31.0","@typescript-eslint/parser":"^4.31.0","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.24.2","husky":"^7.0.2","jest":"^27.1.1","lint-staged":"^11.1.2","prettier":"^2.3.2","ts-jest":"^27.0.5","typescript":"^4.4.2"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"coverageDirectory":"../coverage","testEnvironment":"node"},"lint-staged":{"*.ts":["npm run lint","npm run format"]},"types":"./lib/index.d.ts","gitHead":"81c61fab67d1cc70c860fdeca8388a8d437c0f36","homepage":"https://github.com/pksilen/memory-cache-node#readme","_id":"memory-cache-node@1.3.0","_nodeVersion":"18.12.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-ylcbp/8KQTLCKR/Ps93Qi7TZ9OTRZCGaAUvles4RtbxKZnU2sRirazz2xaeI1KFCH5Ag9BD+Ho1oVnrEuOu13A==","shasum":"39bc253770e75659b02b6ea59b4c19e69dc29243","tarball":"https://registry.npmjs.org/memory-cache-node/-/memory-cache-node-1.3.0.tgz","fileCount":13,"unpackedSize":61694,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSPnP2vz1kyXR7SH9HPZmQdMp5+3yFl5rxqSXjkMo1nQIgXwpRK2PdR45wHyCO31Y9x0FnNihsdE0rgKq3mo2VmM8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJja7+iACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpzHBAAgiFPEWyOOOSv++Kle2XGva1MAVwbKxh5aav+JRvfx//wPX/s\r\nw7b+XR8rVjotZ5/YyYqBti3HexpW442husUWA1ATPHZTZWUYZSuFEOTPegrW\r\nqZ/mYtFtfCXHOgwF/UhyxfLaGC3NsKdnvXxJoCxzzWXgKZfJos3vBp/kyu8T\r\nqQq0DILUz3SVdVSgwaGDdXQVPGslPjVJ1A6ColBVnETuY6tcvHOEzw2JsOvl\r\nXU8m8henVBY1Bq3hshQUJdU2dHqH2hCTGj9pOZkxObDnhj3/KlQpswIy+ahA\r\nP340CQGJqXlw4ZIHOZY+tUx9sG8YUPcEsIuo3MKrTVfoFCwPCHJkSSKjsTMj\r\nUt1NiwEMKzlIqHZ/+u4DT2JrG8c/grun1alZfhOENdZ8B4+8d0mJaMLUxelk\r\no6FHnP+/3LcWXSZuwJyJ09ACRtARaP8EWiOXWgvkXGc6Ggdlr7dx3XFlkNZo\r\nVmpDpD3sF1jCjQOeYAfMYXeT/Jcl3r59iLQAr0usTLEkQLiq2s9cLwloAAdW\r\n0vzNrJn3+t18nhmNufRGimscp8tbgK+67l3hx5kyHOz0tdn5m5t/h9WlC/Vi\r\nJ9/TKIgZr4gz4yU0fxZXwe6z+2Qe3kAlZOKhjXGgHEQGhpm/xpINJnAMqdOt\r\nMxI3Q3TzsLWFkdByPSkJWNKeBe+9giPCJcY=\r\n=53ms\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pksilen","email":"petri.silen@silensoft.com"},"directories":{},"maintainers":[{"name":"pksilen","email":"petri.silen@silensoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/memory-cache-node_1.3.0_1668005794159_0.43305582369585127"},"_hasShrinkwrap":false},"1.4.0":{"name":"memory-cache-node","version":"1.4.0","description":"Fast, modern and event loop non-blocking memory cache for Node.js and browse","author":{"name":"Petri Silen","email":"petri.silen@silensoft.com"},"engines":{"node":">= 12.19"},"license":"MIT","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/pksilen/memory-cache-node.git"},"bugs":{"url":"https://github.com/pksilen/memory-cache-node/issues"},"keywords":["cache","memory","fast"],"scripts":{"prebuild":"rimraf lib","lint":"eslint ./src --cache --fix --ext .ts","format":"prettier --write \"src/**/*.ts\"","build":"tsc","test":"jest","test:coverage":"jest --coverage","prepublishOnly":"npm run build && npm test","prepare":"husky install"},"devDependencies":{"@types/jest":"^27.0.1","@types/node":"^16.7.13","@typescript-eslint/eslint-plugin":"^4.31.0","@typescript-eslint/parser":"^4.31.0","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.24.2","husky":"^7.0.2","jest":"^27.1.1","lint-staged":"^11.1.2","prettier":"^2.3.2","ts-jest":"^27.0.5","typescript":"^4.4.2"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"coverageDirectory":"../coverage","testEnvironment":"node"},"lint-staged":{"*.ts":["npm run lint","npm run format"]},"types":"./lib/index.d.ts","gitHead":"a8efb8e899e8da4bdadb6683227ee891b249dec4","homepage":"https://github.com/pksilen/memory-cache-node#readme","_id":"memory-cache-node@1.4.0","_nodeVersion":"18.12.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-rieJHT67nfitpZmOWcGSX11zC5G56vT2awgw5jApBhJowuMPl5mAPX36w8byJztAKGSluVK02LSW8LIxlTkXdA==","shasum":"8d432d2fa7ef322083998ba9c31f2c61df57ee26","tarball":"https://registry.npmjs.org/memory-cache-node/-/memory-cache-node-1.4.0.tgz","fileCount":13,"unpackedSize":60839,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGgqjG5uci9UEW1/nY456pqB+J9VLJIZeF84Pvjg2Ue0AiEA/AYzf6UPDCqBhOUQBnzq/NRbMHChmemTk+3pXrbilFw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjcKFhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqizw//fNq1wwjeQZGqjyUboQfGUNgyAdSrNl8PiAMXQSxxuTqikgTM\r\ngHxFZJGetoh6M76MH8WS/RWG6R+T7+RxWeqSJ93OlOwu1I7Bqj6MOgpiCqx7\r\nYY02/qT+krxqEvezmilRGjiWFBz/XqkAhWezI37yzxUjC6/FRw+E16PVf7XI\r\nZkG0FqOiCe6oRooAA9mf9WGHHrxHsMxesPFTARGyRGMONuy0nEc++hOHCidD\r\nGCG5cXEpU77B9/r0+aIsR4c8EmnUvQwOoKwkeHqnHLJEywFWziBEk61tzWfr\r\nA2ZWUjc/6zGQ2OTznZ2dnVDUUft08SnpuogVhW8V83LLtEW/LcqrHYWmwxjW\r\ne9tHtyO6uT2sZnPtUNxmLlXExDaNbe2Rt7YhsYnk70IYhQT1Wijok28QNACq\r\nufpWAY5T9aTJCtwQADLitkZzKD2J85p3OzW6VWOqvfE7Np7qcPxVc2RasHPC\r\n4KLstpkfhp1Y6jy5YXMk+uzBUg72mhIptX6mGEbI+pxr0WVx2v0Nen1aOzPQ\r\n1k9IWl+evhPXQFB7Jnl7X+UOu58uBWOWYC2mJWo/rQ9LPo39Hf862t/ei5xR\r\n3gToIXbQxRqD2cqWqXWeidYpw9gFoiKh7cneQG1NCgiOORD2VjSkChlcEHru\r\nhgE8Z3v9SY2H/I7kCqEU7SmYYdS8MdHUu8Y=\r\n=4eiw\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pksilen","email":"petri.silen@silensoft.com"},"directories":{},"maintainers":[{"name":"pksilen","email":"petri.silen@silensoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/memory-cache-node_1.4.0_1668325729179_0.07865138955961015"},"_hasShrinkwrap":false}},"time":{"created":"2021-09-21T13:07:28.670Z","1.0.0":"2021-09-21T13:07:28.916Z","modified":"2022-11-13T07:48:49.417Z","1.1.0":"2021-09-23T11:56:35.028Z","1.1.1":"2021-09-23T12:01:49.848Z","1.1.2":"2021-09-25T08:12:57.488Z","1.2.0":"2022-08-30T17:11:14.272Z","1.3.0":"2022-11-09T14:56:34.287Z","1.4.0":"2022-11-13T07:48:49.343Z"},"maintainers":[{"name":"pksilen","email":"petri.silen@silensoft.com"}],"description":"Fast, modern and event loop non-blocking memory cache for Node.js and browse","homepage":"https://github.com/pksilen/memory-cache-node#readme","keywords":["cache","memory","fast"],"repository":{"type":"git","url":"git+https://github.com/pksilen/memory-cache-node.git"},"author":{"name":"Petri Silen","email":"petri.silen@silensoft.com"},"bugs":{"url":"https://github.com/pksilen/memory-cache-node/issues"},"license":"MIT","readme":"# memory-cache-node\n\n[![version][version-badge]][package]\n[![build][build]][circleci]\n[![coverage][coverage]][codecov]\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=pksilen_memory-cache-node&metric=alert_status)](https://sonarcloud.io/dashboard?id=pksilen_memory-cache-node)\n[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=pksilen_memory-cache-node&metric=bugs)](https://sonarcloud.io/dashboard?id=pksilen_memory-cache-node)\n[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=pksilen_memory-cache-node&metric=vulnerabilities)](https://sonarcloud.io/dashboard?id=pksilen_memory-cache-node)\n[![Downloads][downloads]][package]\n[![MIT License][license-badge]][license]\n\nA fast and type safe memory cache for Node.js and browser. `memory-cache-node` use Javascript Map as cache implementation which\nis faster than using Javascript object that some other similar libraries use. `memory-cache-node` also uses implementation that does\nnot block the event loop for a long time, if the cache is very large (hundreds of thousands or millions of entries).\n\n## Table of Contents\n- [Installation](#installation)\n- [Usage](#usage)\n- [API Documentation](#api-documentation)\n- [License](#license)\n\n## <a name=\"installation\"></a> Installation\n```bash\nnpm install --save memory-cache-node\n```\n\n## <a name=\"usage\"></a> Usage\n\n### Creating a memory cache\nBelow example creates a memory cache for items which has string keys and number values. \nMemory cache checks expiring items every 600 seconds (i.e. every 10 minutes) \nThe maximum number of items in the cache is 1 million.\n\n```ts\nimport { MemoryCache } from 'memory-cache-node';\n\nconst itemsExpirationCheckIntervalInSecs = 10 * 60;\nconst maxItemCount = 1000000;\nconst memoryCache = new MemoryCache<string, number>(itemsExpirationCheckIntervalInSecs, maxItemCount);\n```\n\n### Storing items in the memory cache\nBelow example stores a permanent item in the memory cache with key `key1` and stores an expiring item with key \n`key2`. The latter item expires earliest after 30 minutes.\n\n```ts\nimport { MemoryCache } from 'memory-cache-node';\n\nconst memoryCache = new MemoryCache<string, number>(600, 1000000);\nmemoryCache.storePermanentItem('key1', 1);\n\nconst timeToLiveInSecs = 30 * 60;\nmemoryCache.storeExpiringItem('key2', 2, timeToLiveInSecs);\n```\n\n### Getting the number of items in the memory cache\n```ts\nimport { MemoryCache } from 'memory-cache-node';\n\nconst memoryCache = new MemoryCache<string, number>(600, 1000000);\nmemoryCache.storePermanentItem('key1', 1);\n\nconst timeToLiveInSecs = 30 * 60;\nmemoryCache.storeExpiringItem('key2', 2, timeToLiveInSecs);\nconsole.log(memoryCache.getItemCount()); // Logs to console: 2\n```\n\n### Checking if an item exists in the memory cache\n```ts\nimport { MemoryCache } from 'memory-cache-node';\n\nconst memoryCache = new MemoryCache<string, number>(600, 1000000);\nmemoryCache.storePermanentItem('key1', 1);\n\nconsole.log(memoryCache.hasItem('key1')); // Logs to console: true\nconsole.log(memoryCache.hasItem('notFound')); // Logs to console: false\n```\n\n### Retrieving the value of an item in the memory cache\n```ts\nimport { MemoryCache } from 'memory-cache-node';\n\nconst memoryCache = new MemoryCache<string, number>(600, 1000000);\nmemoryCache.storePermanentItem('key1', 1);\n\nconsole.log(memoryCache.retrieveItemValue('key1')); // Logs to console: 1\nconsole.log(memoryCache.retrieveItemValue('notFound')); // Logs to console: undefined\n```\n\n### Getting the item expiration timestamp\n```ts\nimport { MemoryCache } from 'memory-cache-node';\n\nconst memoryCache = new MemoryCache<string, number>(600, 1000000);\nmemoryCache.storePermanentItem('key1', 1);\n\nconsole.log(memoryCache.getItemExpirationTimestampInMillisSinceEpoch('key1')); // Logs some large number to console\n```\n\n### Removing an item from the memory cache\n```ts\nimport { MemoryCache } from 'memory-cache-node';\n\nconst memoryCache = new MemoryCache<string, number>(600, 1000000);\nmemoryCache.storePermanentItem('key1', 1);\nconsole.log(memoryCache.hasItem('key1')); // Logs to console: true\nmemoryCache.removeItem('key1');\nconsole.log(memoryCache.hasItem('key1')); // Logs to console: false\n```\n\n### Clearing the memory cache\nBelow examples removes all items from the memory cache\n```ts\nimport { MemoryCache } from 'memory-cache-node';\n\nconst memoryCache = new MemoryCache<string, number>(600, 1000000);\n// Use cache here\n// ...\nmemoryCache.clear()\n```\n\n### Destroying the memory cache\nBelow example destroys the memory cache and it **should not be used** after that.\nIt clears the memory cache and also removes the timer for checking expired items.\n**NOTE! You should NEVER use a destroyed cache again!** \nIf you try to use a destroyed memory cache, an exception will be thrown.\nYou should destroy your memory cache if it is not used in your application anymore.\n\n```ts\nimport { MemoryCache } from 'memory-cache-node';\n\nconst memoryCache = new MemoryCache<string, number>(600, 1000000);\n// Use cache here\n// ...\nmemoryCache.destroy()\n```\n\n## <a name=\"api-documentation\"></a> API Documentation\n\n```ts\n`K` is the type of the item key.\n`V` is the type of the item value.\n  \nclass MemoryCache<K, V> {\n  constructor(itemsExpirationCheckIntervalInSecs: number, maxItemCount: number);\n  storePermanentItem(itemKey: K, itemValue: V): void;\n  storeExpiringItem(itemKey: K, itemValue: V, timeToLiveInSecs: number): void;\n  getItemCount(): number;\n  hasItem(itemKey: K): boolean;\n  getValues(): V[];\n  getItems(): [K, V][];\n  retrieveItemValue(itemKey: K): V | undefined;\n  getItemExpirationTimestampInMillisSinceEpoch(itemKey: K): number | undefined;\n  removeItem(itemKey: K): void;\n  exportItemsToJson(): string;\n  \n  // Use below function only with JSON output from exportItemsToJson method\n  importItemsFrom(json: string): void; // Can throw if JSON is invalid\n  \n  clear(): void;\n  destroy(): void;\n}\n```\n\n## <a name=\"license\"></a> License\n[MIT](https://github.com/pksilen/memory-cache-node/blob/main/LICENSE)\n\n[license-badge]: https://img.shields.io/badge/license-MIT-green\n[license]: https://github.com/pksilen/memory-cache-node/blob/main/LICENSE\n[version-badge]: https://img.shields.io/npm/v/memory-cache-node.svg?style=flat-square\n[package]: https://www.npmjs.com/package/memory-cache-node\n[downloads]: https://img.shields.io/npm/dm/memory-cache-node\n[build]: https://img.shields.io/circleci/project/github/pksilen/memory-cache-node/main.svg?style=flat-square\n[circleci]: https://circleci.com/gh/pksilen/memory-cache-node/tree/main\n[coverage]: https://img.shields.io/codecov/c/github/pksilen/memory-cache-node/main.svg?style=flat-square\n[codecov]: https://codecov.io/gh/pksilen/memory-cache-node\n","readmeFilename":"README.md"}