{"_id":"f-cache-memory","_rev":"10-3b3e4150ca5dad9dfae76eb70ab9c2e2","name":"f-cache-memory","dist-tags":{"latest":"0.0.14"},"versions":{"0.0.1":{"name":"f-cache-memory","version":"0.0.1","author":{"name":"fxss5201"},"license":"MIT","_id":"f-cache-memory@0.0.1","maintainers":[{"name":"fxss5201","email":"723107234@qq.com"}],"homepage":"https://github.com/fxss5201/f-cache-memory#readme","bugs":{"url":"https://github.com/fxss5201/f-cache-memory/issues"},"dist":{"shasum":"9d5f284b6642d669372b98a4d672f35652cb316a","tarball":"https://registry.npmjs.org/f-cache-memory/-/f-cache-memory-0.0.1.tgz","fileCount":6,"integrity":"sha512-aoNZTiROtWv4yr7b13/kuGMwFEJXEObCdrl/FJsa5mZnkEIAWSytarNDgIQaXt19hnSSKOKB3dkwoni9AzYaLQ==","signatures":[{"sig":"MEYCIQDpbaE7axNLjFXOEQ12epkw+KpGDTqU6GhiTmEW7JrnugIhALEf09kooMmEhFwGl5c7O6zEYIKgLsYUiQEIAEB3YQ2o","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11036},"main":"./dist/cacheMemory.umd.cjs","type":"module","types":"./index.d.ts","config":{"commitizen":{"path":"node_modules/cz-git"}},"module":"./dist/cacheMemory.js","exports":{"types":"./index.d.ts","import":"./dist/cacheMemory.js","require":"./dist/cacheMemory.umd.cjs"},"gitHead":"fdb4dd1a4083e1468659ea36c4883cd78e16bbc8","private":false,"scripts":{"cz":"czg","dev":"vite","test":"vitest --ui","build":"tsc && vite build"},"_npmUser":{"name":"fxss5201","email":"723107234@qq.com"},"repository":{"url":"git+ssh://git@github.com/fxss5201/f-cache-memory.git","type":"git"},"_npmVersion":"6.14.6","description":"缓存库","directories":{},"_nodeVersion":"20.15.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"czg":"^1.9.3","vite":"^5.2.10","cz-git":"^1.9.3","vitest":"^2.0.2","@vitest/ui":"^2.0.2","typescript":"^5.4.5","@vitest/coverage-v8":"^2.0.2"},"_npmOperationalInternal":{"tmp":"tmp/f-cache-memory_0.0.1_1720951563957_0.6251614891236905","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"f-cache-memory","version":"0.0.2","author":{"name":"fxss5201"},"license":"MIT","_id":"f-cache-memory@0.0.2","maintainers":[{"name":"fxss5201","email":"723107234@qq.com"}],"homepage":"https://github.com/fxss5201/f-cache-memory#readme","bugs":{"url":"https://github.com/fxss5201/f-cache-memory/issues"},"dist":{"shasum":"e7b762af96215b190a31cd39bd8a403fb0630d0b","tarball":"https://registry.npmjs.org/f-cache-memory/-/f-cache-memory-0.0.2.tgz","fileCount":5,"integrity":"sha512-iEvwVqkyE0vkV098SfXXznoDoW/7aVunXypJ3XQ3ONoot4vNyepiTum7vQOOdDpfGon0wLBX6N7W3nqIlw8I3Q==","signatures":[{"sig":"MEUCIQDaTtMftqAIUZQ1QjHLEZTw7d3MY/eg2XmTlWdCZB3J2AIgZgs+KDzd4SEK69JXSzJsTogUQAwIHRYHkVLoICltpkM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11304},"main":"./dist/cacheMemory.umd.cjs","type":"module","types":"./index.d.ts","config":{"commitizen":{"path":"node_modules/cz-git"}},"module":"./dist/cacheMemory.js","exports":{"types":"./index.d.ts","import":"./dist/cacheMemory.js","require":"./dist/cacheMemory.umd.cjs"},"gitHead":"16c8e7ceaaa535dcf30a1bb6270b9e347e7ac555","private":false,"scripts":{"cz":"czg","dev":"vite","test":"vitest --ui","build":"tsc && vite build"},"_npmUser":{"name":"fxss5201","email":"723107234@qq.com"},"repository":{"url":"git+ssh://git@github.com/fxss5201/f-cache-memory.git","type":"git"},"_npmVersion":"6.14.6","description":"缓存库","directories":{},"_nodeVersion":"20.15.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"czg":"^1.9.3","vite":"^5.2.10","cz-git":"^1.9.3","vitest":"^2.0.2","@vitest/ui":"^2.0.2","typescript":"^5.4.5","@vitest/coverage-v8":"^2.0.2"},"_npmOperationalInternal":{"tmp":"tmp/f-cache-memory_0.0.2_1720967071543_0.8337022395599916","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"f-cache-memory","version":"0.0.3","keywords":["cache","axios-cache"],"author":{"name":"fxss5201"},"license":"MIT","_id":"f-cache-memory@0.0.3","maintainers":[{"name":"fxss5201","email":"723107234@qq.com"}],"homepage":"https://github.com/fxss5201/f-cache-memory#readme","bugs":{"url":"https://github.com/fxss5201/f-cache-memory/issues"},"dist":{"shasum":"ed90c42e58db2fd0681093547b1f84a354c89104","tarball":"https://registry.npmjs.org/f-cache-memory/-/f-cache-memory-0.0.3.tgz","fileCount":3,"integrity":"sha512-mb97ciWlZ2HzpxY5K04YL27/slbI88e+vfb55B5ZtiBnrRxF52FD6zu/DhWYjjM05LSoe/XI0+lLJaq7Ljqjog==","signatures":[{"sig":"MEUCIDeCiarYoWVebSAxHPki9fUpBfSuuRrgIS37oK6ZFANzAiEAxxqsG8fjGkHp/yYX9oyRn85yQUAFCZegsidx3BLYm2Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5231},"main":"./dist/cacheMemory.umd.cjs","type":"module","types":"./index.d.ts","config":{"commitizen":{"path":"node_modules/cz-git"}},"module":"./dist/cacheMemory.js","exports":{"types":"./index.d.ts","import":"./dist/cacheMemory.js","require":"./dist/cacheMemory.umd.cjs"},"gitHead":"3a0002ae42d67f7e9d0a97288aef7d857fdac341","private":false,"scripts":{"cz":"czg","dev":"vite","test":"vitest --ui","build":"tsc && vite build","release":"commit-and-tag-version"},"_npmUser":{"name":"fxss5201","email":"723107234@qq.com"},"repository":{"url":"git+ssh://git@github.com/fxss5201/f-cache-memory.git","type":"git"},"_npmVersion":"8.19.4","description":"cache memory","directories":{},"_nodeVersion":"16.20.2","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"czg":"^1.9.3","vite":"^5.2.10","cz-git":"^1.9.3","vitest":"^2.0.2","coveralls":"^3.1.1","@vitest/ui":"^2.0.2","typescript":"^5.4.5","commit-and-tag-version":"^12.4.1","@vitest/coverage-istanbul":"^2.0.3"},"commit-and-tag-version":{"releaseCount":0},"_npmOperationalInternal":{"tmp":"tmp/f-cache-memory_0.0.3_1721056889195_0.7834707977210023","host":"s3://npm-registry-packages"}},"0.0.5":{"name":"f-cache-memory","version":"0.0.5","keywords":["cache","axios-cache"],"author":{"name":"fxss5201"},"license":"MIT","_id":"f-cache-memory@0.0.5","maintainers":[{"name":"fxss5201","email":"723107234@qq.com"}],"homepage":"https://github.com/fxss5201/f-cache-memory#readme","bugs":{"url":"https://github.com/fxss5201/f-cache-memory/issues"},"dist":{"shasum":"cc12f12c70fe86858713b042ff0b53ac29d88f5d","tarball":"https://registry.npmjs.org/f-cache-memory/-/f-cache-memory-0.0.5.tgz","fileCount":5,"integrity":"sha512-/MM+u+ZG1mU7uId5sFXuU3xgoV9hwBv6fQxPMVdNbYXXxtJlQboOzS72Hnb6Eq/Vn/ON0VaPeaF57TLgcx+RZA==","signatures":[{"sig":"MEQCIFB3FastdXrKNKE1kF+iqImzBXmPc/5y86GshYs0HXc7AiBmaEoGrjPVoioN4W4Md8wqSiGJUiksLrNtoML7rYfXbw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11495},"main":"./dist/cacheMemory.umd.cjs","type":"module","types":"./index.d.ts","config":{"commitizen":{"path":"node_modules/cz-git"}},"module":"./dist/cacheMemory.js","exports":{"types":"./index.d.ts","import":"./dist/cacheMemory.js","require":"./dist/cacheMemory.umd.cjs"},"gitHead":"a7480fb225acb1908611f8845da88d8215388ad9","private":false,"scripts":{"cz":"czg","dev":"vite","test":"vitest --ui","build":"tsc && vite build","release":"commit-and-tag-version"},"_npmUser":{"name":"fxss5201","email":"723107234@qq.com"},"repository":{"url":"git+ssh://git@github.com/fxss5201/f-cache-memory.git","type":"git"},"_npmVersion":"8.19.4","description":"cache memory","directories":{},"_nodeVersion":"16.20.2","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"czg":"^1.9.3","vite":"^5.2.10","cz-git":"^1.9.3","vitest":"^2.0.2","coveralls":"^3.1.1","@vitest/ui":"^2.0.2","typescript":"^5.4.5","commit-and-tag-version":"^12.4.1","@vitest/coverage-istanbul":"^2.0.3"},"_npmOperationalInternal":{"tmp":"tmp/f-cache-memory_0.0.5_1721057821093_0.7878183310858262","host":"s3://npm-registry-packages"}},"0.0.6":{"name":"f-cache-memory","version":"0.0.6","keywords":["cache","axios-cache"],"author":{"name":"fxss5201"},"license":"MIT","_id":"f-cache-memory@0.0.6","maintainers":[{"name":"fxss5201","email":"723107234@qq.com"}],"homepage":"https://github.com/fxss5201/f-cache-memory#readme","bugs":{"url":"https://github.com/fxss5201/f-cache-memory/issues"},"dist":{"shasum":"f095eca13660a7df3188c2a97ff9fea62fd094ea","tarball":"https://registry.npmjs.org/f-cache-memory/-/f-cache-memory-0.0.6.tgz","fileCount":6,"integrity":"sha512-WzXykd0vu7htEai5Z1nR6hOvGS4Im66F+DsBlXu79rAb0HFoGbALHTvJxc3Fl5jqGMw5uqH3tm2CtbvNhU570w==","signatures":[{"sig":"MEQCIFiDVSoJ1t2oU+udiNECwbRrotMH5MQ2NA318bW8PLgAAiBT5aklsaT3aylC5/Hgoh6mXnBMfWa0TU1tUc+utTRDCg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13446},"main":"./dist/cacheMemory.umd.cjs","type":"module","types":"./index.d.ts","config":{"commitizen":{"path":"node_modules/cz-git"}},"module":"./dist/cacheMemory.js","exports":{"types":"./index.d.ts","import":"./dist/cacheMemory.js","require":"./dist/cacheMemory.umd.cjs"},"gitHead":"b2250374e25248bbbc0a2ad6006c9341ef33ebff","private":false,"scripts":{"cz":"czg","dev":"vite","test":"vitest --ui","build":"tsc && vite build","release":"commit-and-tag-version"},"_npmUser":{"name":"fxss5201","email":"723107234@qq.com"},"repository":{"url":"git+ssh://git@github.com/fxss5201/f-cache-memory.git","type":"git"},"_npmVersion":"8.19.4","description":"cache memory","directories":{},"_nodeVersion":"16.20.2","_hasShrinkwrap":false,"devDependencies":{"czg":"^1.9.3","vite":"^5.2.10","cz-git":"^1.9.3","vitest":"^2.0.2","coveralls":"^3.1.1","@vitest/ui":"^2.0.2","typescript":"^5.4.5","@vitest/coverage-v8":"^2.0.3","commit-and-tag-version":"^12.4.1"},"_npmOperationalInternal":{"tmp":"tmp/f-cache-memory_0.0.6_1721108171389_0.7867486570203277","host":"s3://npm-registry-packages"}},"0.0.8":{"name":"f-cache-memory","version":"0.0.8","keywords":["cache","axios-cache"],"author":{"name":"fxss5201"},"license":"MIT","_id":"f-cache-memory@0.0.8","maintainers":[{"name":"fxss5201","email":"723107234@qq.com"}],"homepage":"https://github.com/fxss5201/f-cache-memory#readme","bugs":{"url":"https://github.com/fxss5201/f-cache-memory/issues"},"dist":{"shasum":"8be7908bfc751aa2ac542c7aa84cd4e5ffd866b9","tarball":"https://registry.npmjs.org/f-cache-memory/-/f-cache-memory-0.0.8.tgz","fileCount":6,"integrity":"sha512-2TYkKuBA6w8SPioZU1Pa4iwzYiekb+rJbHlRAcaMMr9/ZDTfm68taj1DcEL9cBYwPmcpYT/ce/Zi43EpjVEXIw==","signatures":[{"sig":"MEYCIQDQKL3Z8D7ufCjhAE6173T8zrRaLlK3I8sXHATLHfLk5QIhAL95IfOvu3D54Dny0vDfBkQkrD3XJ+PjHklTRlEt6iOh","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16744},"main":"./dist/cacheMemory.umd.cjs","type":"module","types":"./index.d.ts","config":{"commitizen":{"path":"node_modules/cz-git"}},"module":"./dist/cacheMemory.js","exports":{"types":"./index.d.ts","import":"./dist/cacheMemory.js","require":"./dist/cacheMemory.umd.cjs"},"gitHead":"6ba9234a083388504910583519dabb41107c26f0","private":false,"scripts":{"cz":"czg","dev":"vite","test":"vitest --ui","build":"tsc && vite build","release":"commit-and-tag-version"},"_npmUser":{"name":"fxss5201","email":"723107234@qq.com"},"repository":{"url":"git+ssh://git@github.com/fxss5201/f-cache-memory.git","type":"git"},"_npmVersion":"8.19.4","description":"cache memory","directories":{},"_nodeVersion":"16.20.2","_hasShrinkwrap":false,"devDependencies":{"czg":"^1.9.3","vite":"^5.2.10","cz-git":"^1.9.3","vitest":"^2.0.2","coveralls":"^3.1.1","@vitest/ui":"^2.0.2","typescript":"^5.4.5","@vitest/coverage-v8":"^2.0.3","commit-and-tag-version":"^12.4.1"},"_npmOperationalInternal":{"tmp":"tmp/f-cache-memory_0.0.8_1721285432420_0.4175840625914764","host":"s3://npm-registry-packages"}},"0.0.10":{"name":"f-cache-memory","version":"0.0.10","keywords":["cache","axios-cache"],"author":{"name":"fxss5201"},"license":"MIT","_id":"f-cache-memory@0.0.10","maintainers":[{"name":"fxss5201","email":"723107234@qq.com"}],"homepage":"https://github.com/fxss5201/f-cache-memory#readme","bugs":{"url":"https://github.com/fxss5201/f-cache-memory/issues"},"dist":{"shasum":"8b30324368eed5ae7a2d9139141bc9dc1fe84db6","tarball":"https://registry.npmjs.org/f-cache-memory/-/f-cache-memory-0.0.10.tgz","fileCount":6,"integrity":"sha512-Ul4792slf74cq9miUduRdmbz5YwCkwF8SdTOxXfOLNo+GJob6ZmvpM8ucVMox8ocPDALjAcTr036Gib8LaTAWQ==","signatures":[{"sig":"MEQCICF1/c12mNn2VRK+usmk8BwF1XZnaMz+4q+KQ5rp8uLkAiAvTAH+k7aHG0OXJMj3ZAdyGb1mleT+Tee7wdq0VwJ6SQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17292},"main":"./dist/cacheMemory.umd.cjs","type":"module","types":"./types/main.d.ts","config":{"commitizen":{"path":"node_modules/cz-git"}},"module":"./dist/cacheMemory.js","exports":{"types":"./types/main.d.ts","import":"./dist/cacheMemory.js","require":"./dist/cacheMemory.umd.cjs"},"gitHead":"1fa1d5a3d61ca1925c30bea419bd2d4b7324f53c","private":false,"scripts":{"cz":"czg","dev":"vite","test":"vitest --ui","type":"tsc","build":"tsc && vite build","release":"commit-and-tag-version"},"_npmUser":{"name":"fxss5201","email":"723107234@qq.com"},"repository":{"url":"git+ssh://git@github.com/fxss5201/f-cache-memory.git","type":"git"},"_npmVersion":"8.19.4","description":"cache memory","directories":{},"_nodeVersion":"16.20.2","_hasShrinkwrap":false,"devDependencies":{"czg":"^1.9.3","vite":"^5.2.10","cz-git":"^1.9.3","vitest":"^2.0.2","coveralls":"^3.1.1","@vitest/ui":"^2.0.2","typescript":"^5.4.5","@vitest/coverage-v8":"^2.0.3","commit-and-tag-version":"^12.4.1"},"_npmOperationalInternal":{"tmp":"tmp/f-cache-memory_0.0.10_1721657907651_0.9162087300708044","host":"s3://npm-registry-packages"}},"0.0.11":{"name":"f-cache-memory","version":"0.0.11","keywords":["cache","axios-cache"],"author":{"name":"fxss5201"},"license":"MIT","_id":"f-cache-memory@0.0.11","maintainers":[{"name":"fxss5201","email":"723107234@qq.com"}],"homepage":"https://github.com/fxss5201/f-cache-memory#readme","bugs":{"url":"https://github.com/fxss5201/f-cache-memory/issues"},"dist":{"shasum":"f8ffba338f7aea0ebd284a3ecbd73f6bae802ed1","tarball":"https://registry.npmjs.org/f-cache-memory/-/f-cache-memory-0.0.11.tgz","fileCount":6,"integrity":"sha512-HGbDATkk4X47cfdiASYNAemHASLYbzeRDLnGq+8jLhGgUEi/UIhQ6RrQ0gE6wuL4VErXyhJK5kXHRoGlykeYGA==","signatures":[{"sig":"MEQCIDm6WmE4KpXd+mVDKhkBTPgAdnBE5GINNjU3fX6kD467AiB+FrcB3CgKZt4nmMU6mW+zAhGxf7X5GLJyOpHS6CpDKQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18551},"main":"./dist/cacheMemory.umd.cjs","type":"module","types":"./types/main.d.ts","config":{"commitizen":{"path":"node_modules/cz-git"}},"module":"./dist/cacheMemory.js","exports":{"types":"./types/main.d.ts","import":"./dist/cacheMemory.js","require":"./dist/cacheMemory.umd.cjs"},"gitHead":"215abe89c3658e4cb8488a6f207d9698cb12f11b","private":false,"scripts":{"cz":"czg","dev":"vite","test":"vitest --ui","type":"tsc","build":"npm run creatType && tsc && vite build","pretype":"tsx scripts/pretype.ts","release":"commit-and-tag-version","posttype":"tsx scripts/posttype.ts","creatType":"npm run pretype && npm run type && npm run posttype"},"_npmUser":{"name":"fxss5201","email":"723107234@qq.com"},"repository":{"url":"git+ssh://git@github.com/fxss5201/f-cache-memory.git","type":"git"},"_npmVersion":"8.19.4","description":"cache memory","directories":{},"_nodeVersion":"16.20.2","_hasShrinkwrap":false,"devDependencies":{"czg":"^1.9.3","tsx":"^4.16.2","vite":"^5.2.10","cz-git":"^1.9.3","vitest":"^2.0.2","coveralls":"^3.1.1","@vitest/ui":"^2.0.2","typescript":"^5.4.5","@types/node":"^20.14.12","@vitest/coverage-v8":"^2.0.3","commit-and-tag-version":"^12.4.1"},"_npmOperationalInternal":{"tmp":"tmp/f-cache-memory_0.0.11_1722224761754_0.019075714276753697","host":"s3://npm-registry-packages"}},"0.0.12":{"name":"f-cache-memory","version":"0.0.12","keywords":["cache","axios-cache"],"author":{"name":"fxss5201"},"license":"MIT","_id":"f-cache-memory@0.0.12","maintainers":[{"name":"fxss5201","email":"723107234@qq.com"}],"homepage":"https://github.com/fxss5201/f-cache-memory#readme","bugs":{"url":"https://github.com/fxss5201/f-cache-memory/issues"},"dist":{"shasum":"00e074a45967d9e30abf43e6fc663cef1f808a71","tarball":"https://registry.npmjs.org/f-cache-memory/-/f-cache-memory-0.0.12.tgz","fileCount":6,"integrity":"sha512-38QJwPh0kyR41wd08pShyoBzznua5hmCx/zUp2qrnxnn7UgdqlBHMfEbmCbAFYpry5BrsFVGPGdszThxurG/8w==","signatures":[{"sig":"MEUCIC8XX6tLncrJStM9Sk2LWimVzLdotAbiJLVH4lA0iwcuAiEAy12RYue6GewkC77Y98EVCv62u76Cna0iyQGAdVSWKOU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17518},"main":"./dist/cacheMemory.umd.cjs","type":"module","types":"./types/main.d.ts","config":{"commitizen":{"path":"node_modules/cz-git"}},"module":"./dist/cacheMemory.js","exports":{"types":"./types/main.d.ts","import":"./dist/cacheMemory.js","require":"./dist/cacheMemory.umd.cjs"},"gitHead":"ae6d8c1f9384a85d9521ea375a80864f2bf36bff","private":false,"scripts":{"cz":"czg","dev":"vite","test":"vitest --ui","build":"tsc && vite build","release":"commit-and-tag-version"},"_npmUser":{"name":"fxss5201","email":"723107234@qq.com"},"repository":{"url":"git+ssh://git@github.com/fxss5201/f-cache-memory.git","type":"git"},"_npmVersion":"8.19.4","description":"cache memory","directories":{},"_nodeVersion":"16.20.2","_hasShrinkwrap":false,"devDependencies":{"czg":"^1.9.3","tsx":"^4.16.2","vite":"^5.2.10","cz-git":"^1.9.3","vitest":"^2.0.2","coveralls":"^3.1.1","@vitest/ui":"^2.0.2","typescript":"^5.4.2","@types/node":"^20.14.12","vite-plugin-dts":"^4.3.0","@vitest/coverage-v8":"^2.0.3","commit-and-tag-version":"^12.4.1"},"_npmOperationalInternal":{"tmp":"tmp/f-cache-memory_0.0.12_1730107563415_0.2931324691828405","host":"s3://npm-registry-packages"}},"0.0.13":{"name":"f-cache-memory","version":"0.0.13","keywords":["cache","axios-cache"],"author":{"name":"fxss5201"},"license":"MIT","_id":"f-cache-memory@0.0.13","maintainers":[{"name":"fxss5201","email":"723107234@qq.com"}],"homepage":"https://github.com/fxss5201/f-cache-memory#readme","bugs":{"url":"https://github.com/fxss5201/f-cache-memory/issues"},"dist":{"shasum":"c61a72a2027406fc1085f7c8608076459289eab9","tarball":"https://registry.npmjs.org/f-cache-memory/-/f-cache-memory-0.0.13.tgz","fileCount":6,"integrity":"sha512-Lv+Ny8bKyQ+rgSgULO/e54g1n442BkLtpVm+P/dpDNoCXKRJ8LPQqIolhOLfP228DH/mjl2FAHxT5GcsKgoBOQ==","signatures":[{"sig":"MEYCIQDQo/uPf+h3jRU5uSsET0d+8+IEkvXzA4dSTkdOTv/BLwIhAN5LN7pDhGMDt0zMhqij6T2dKzNk3bFZiSZENxPbPAHG","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18467},"main":"./dist/cacheMemory.umd.cjs","type":"module","types":"./types/main.d.ts","config":{"commitizen":{"path":"node_modules/cz-git"}},"module":"./dist/cacheMemory.js","exports":{"types":"./types/main.d.ts","import":"./dist/cacheMemory.js","require":"./dist/cacheMemory.umd.cjs"},"gitHead":"832c69fc0304dfb7de8f69b6d039d8f96cf0209c","private":false,"scripts":{"cz":"czg","dev":"vite","test":"vitest --ui","build":"tsc && vite build","release":"commit-and-tag-version"},"_npmUser":{"name":"fxss5201","email":"723107234@qq.com"},"repository":{"url":"git+ssh://git@github.com/fxss5201/f-cache-memory.git","type":"git"},"_npmVersion":"8.19.4","description":"cache memory","directories":{},"_nodeVersion":"16.20.2","_hasShrinkwrap":false,"devDependencies":{"czg":"^1.9.3","tsx":"^4.16.2","vite":"^5.2.10","cz-git":"^1.9.3","vitest":"^2.0.2","coveralls":"^3.1.1","@vitest/ui":"^2.0.2","typescript":"^5.4.2","@types/node":"^20.14.12","vite-plugin-dts":"^4.3.0","@vitest/coverage-v8":"^2.0.3","commit-and-tag-version":"^12.4.1"},"_npmOperationalInternal":{"tmp":"tmp/f-cache-memory_0.0.13_1730109141034_0.6453363991942618","host":"s3://npm-registry-packages"}},"0.0.14":{"name":"f-cache-memory","private":false,"license":"MIT","version":"0.0.14","keywords":["cache","axios-cache"],"description":"cache memory","author":{"name":"fxss5201"},"repository":{"type":"git","url":"git+ssh://git@github.com/fxss5201/f-cache-memory.git"},"type":"module","main":"./dist/cacheMemory.umd.cjs","module":"./dist/cacheMemory.js","types":"./types/main.d.ts","exports":{"types":"./types/main.d.ts","import":"./dist/cacheMemory.js","require":"./dist/cacheMemory.umd.cjs"},"scripts":{"dev":"vite","test":"vitest --ui","build":"tsc && vite build","release":"commit-and-tag-version","cz":"czg"},"devDependencies":{"@types/lodash.clonedeep":"^4.5.9","@types/node":"^20.14.12","@vitest/coverage-v8":"^2.0.3","@vitest/ui":"^2.0.2","commit-and-tag-version":"^12.4.1","coveralls":"^3.1.1","cz-git":"^1.9.3","czg":"^1.9.3","tsx":"^4.16.2","typescript":"^5.4.2","vite":"^5.2.10","vite-plugin-dts":"^4.3.0","vitest":"^2.0.2"},"config":{"commitizen":{"path":"node_modules/cz-git"}},"dependencies":{"lodash.clonedeep":"^4.5.0"},"gitHead":"f1c373e931d4951410ed1b44b124c15f1b40ab7b","bugs":{"url":"https://github.com/fxss5201/f-cache-memory/issues"},"homepage":"https://github.com/fxss5201/f-cache-memory#readme","_id":"f-cache-memory@0.0.14","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-uX2ykupg5ofEP7DI/JoXnTcUZIMYVHa+9CatdcePjxwIxZiyn1wrgwd/JWpa5vdplSQ6p+zuEo7nTUj0Ingetg==","shasum":"71fb7aca6b125baf67957dc76e3955036eec18d9","tarball":"https://registry.npmjs.org/f-cache-memory/-/f-cache-memory-0.0.14.tgz","fileCount":6,"unpackedSize":40749,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCjItFlIQlnVlQisICk/wrJTf0USy33Xb2xZU7+xQl3cwIgUmhHs/HZT4l2Du6LH404ZFoN46I/7iwW3t76umpdN20="}]},"_npmUser":{"name":"fxss5201","email":"723107234@qq.com"},"directories":{},"maintainers":[{"name":"fxss5201","email":"723107234@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/f-cache-memory_0.0.14_1738748954532_0.9014073535818106"},"_hasShrinkwrap":false}},"time":{"created":"2024-07-14T10:06:03.956Z","modified":"2025-02-05T09:49:14.867Z","0.0.1":"2024-07-14T10:06:04.129Z","0.0.2":"2024-07-14T14:24:31.686Z","0.0.3":"2024-07-15T15:21:29.362Z","0.0.5":"2024-07-15T15:37:01.276Z","0.0.6":"2024-07-16T05:36:11.526Z","0.0.8":"2024-07-18T06:50:32.587Z","0.0.10":"2024-07-22T14:18:27.852Z","0.0.11":"2024-07-29T03:46:01.871Z","0.0.12":"2024-10-28T09:26:03.607Z","0.0.13":"2024-10-28T09:52:21.196Z","0.0.14":"2025-02-05T09:49:14.689Z"},"bugs":{"url":"https://github.com/fxss5201/f-cache-memory/issues"},"author":{"name":"fxss5201"},"license":"MIT","homepage":"https://github.com/fxss5201/f-cache-memory#readme","keywords":["cache","axios-cache"],"repository":{"type":"git","url":"git+ssh://git@github.com/fxss5201/f-cache-memory.git"},"description":"cache memory","maintainers":[{"name":"fxss5201","email":"723107234@qq.com"}],"readme":"# f-cache-memory\n\n[![npm](https://img.shields.io/npm/v/f-cache-memory)](https://www.npmjs.com/package/f-cache-memory) [![Coverage Status](https://coveralls.io/repos/github/fxss5201/f-cache-memory/badge.svg?branch=main)](https://coveralls.io/github/fxss5201/f-cache-memory?branch=main) [![Download](https://img.shields.io/npm/dm/f-cache-memory)](https://www.npmjs.com/package/f-cache-memory)\n\n```sh\nnpm i f-cache-memory\n```\n\n[中文文档](https://github.com/fxss5201/f-cache-memory/blob/main/README-zh_CN.md)\n\ncache memory library\n\n```ts\nimport CacheMemory from 'f-cache-memory'\n\nconst cache = new CacheMemory()\ncache.setCache('aaa', 111)\ncache.setCache('bbb', 222)\nconsole.log(cache.getCache('aaa'))\nconsole.log(cache.getNowCache())\nconsole.log(cache.getPreviousCache())\ncache.setCache('ccc', 333)\nconsole.log(cache.getNowCache())\nconsole.log(cache.getPreviousCache())\nconsole.log(cache.getNextCache())\nconsole.log(cache.getCacheToArray())\n\nconst localCache = new CacheMemory(100, 100000, (data) => {\n  localStorage.setItem('localCache', JSON.stringify(data))\n})\nlocalCache.setCache('aaa', 111)\nlocalCache.setCache('bbb', 222)\n\nconst initCache = new CacheMemory()\nconst localStorageCache = localStorage.getItem('localCache')\nif (localStorageCache) {\n  initCache.initCache(JSON.parse(localStorageCache))\n}\nconsole.log(initCache.getCacheToArray())\n```\n\nVue:\n\n```ts\nconst cacheList = ref<[string, any][]>([])\nconst localCache = new CacheMemory(100, 100000, (data) => {\n  cacheList.value = data\n})\n```\n\nReact:\n\n```ts\nconst [cacheList, setCacheList] = useState<[string, any][]>([])\nconst localCache = new CacheMemory(100, 100000, (data) => {\n  setCacheList(data)\n})\n```\n\n```ts\nexport interface CacheValueType {\n  dateTime: number;\n  data: any;\n}\n```\n\n## Initialize parameters\n\n|parameter|default|description|version|\n|------|----|------|----|\n| `size?: number` | `100` | How many can be cached at most ||\n| `expiration?: number` | `Number.MAX_SAFE_INTEGER` | Set the cache validity period in milliseconds, and if it exceeds the time, it will be deleted ||\n| `change?: (data: [string, CacheValueType][]) => void` | - | When the cache changes, external data can be synchronized within this method | `change` in v0.0.7+ |\n\n## api\n\n|api|parameter|typeof return|description|version|\n|----|----|----|----|----|\n| `initCache` | `data: [string, CacheValueType][]` | - | Initialize cached data | `initCache` in v0.0.7+ |\n| `hasCache` | `key: string` | `boolean` | Verify if it is in cache ||\n| `setCache` | `key: string, data: any, expiration?: number` | - | Set cache, `expiration` sets the cache validity period in milliseconds, with priority higher than the initialized `expiration` parameter. If not set, it defaults to the initialized `expiration` parameter | `expiration` in v0.0.3+ |\n| `getCache` | `key: string` | `any` | Retrieve cache ||\n| `deleteCache` | `key: string` | - | Delete Cache ||\n| `deleteCacheByStarts` | `url: string` | - | Delete cache based on the prefix of key values ||\n| `clearCache` | - | - | Clear Cache ||\n| `cacheSize` | - | `number` | Cache Size ||\n| `getNowCache` | - | `any` | Retrieve the current cache, which defaults to the last one, `getPreviousCache`/`getNextCache`/`goPostionCache`/`goAbsPostionCache` will affect the current cached value ||\n| `getPreviousCache` | - | `any` | Cache the previous cache in the set order ||\n| `getNextCache` | - | `any` | Cache the next cache in the set order ||\n| `goPostionCache` | `num: number` | `any` | Retrieve cache relative to the current cache, where 1 is the next and -1 is the previous ||\n| `goAbsPostionCache` | `num: number` | `any` | Retrieve the numth cache in the order set ||\n| `getCacheToArray` | `needTime: boolean = false` | `[string, CacheValueType][] \\| [string, any][]` | Convert to an array in the order set. If the parameter is `false`, return the set data directly. If it is `true`, return `{dateTime: expiration time, data: set data}` | `dateTime` parameter in v0.0.7+ |\n\n``` ts\nexport interface CacheValueType {\n    dateTime: number;\n    data: any;\n}\nexport type isArrayNeedTime<T> = T extends true ? [string, CacheValueType][] : [string, any][];\nexport default class CacheMemory {\n    #private;\n    constructor(size?: number, expiration?: number, change?: (data: [string, CacheValueType][]) => void);\n    hasCache(key: string): boolean;\n    setCache(key: string, data: any, expiration?: number): void;\n    getCache(key: string): any;\n    deleteCache(key: string): void;\n    deleteCacheByStarts(url: string): void;\n    clearCache(): void;\n    initCache(data: [string, CacheValueType][]): void;\n    cacheSize(): number;\n    getNowCache(): any;\n    getPreviousCache(): any;\n    getNextCache(): any;\n    goPostionCache(num: number): any;\n    goAbsPostionCache(num: number): any;\n    getCacheToArray<T extends boolean = false>(needTime?: T): isArrayNeedTime<T>;\n}\n```\n\n## Usage scenario\n\n### axios cache\n\n[example](https://github.com/fxss5201/vue-components/blob/main/src/service/httpCache.ts#L2)\n\n```ts\n// httpCache.ts\nimport type { AxiosRequestConfig } from 'axios'\nimport CacheMemory from 'f-cache-memory'\n\nconst httpCache = new CacheMemory()\n// const httpCache = new CacheMemory(100, 1000)\n\nexport function configToKey(config: AxiosRequestConfig): string {\n  let key = config.url as string\n  if (config.params) {\n    key += JSON.stringify(config.params)\n  }\n  return key\n}\n\nexport default httpCache\n```\n\nThe encapsulation adjustments for `axios` are as follows\n\n```ts\n...\nimport httpCache, { configToKey } from './httpCache'\n...\ninstance.interceptors.response.use(\n  (response) => {\n    if (response.status === 200 && response.config.method === 'get') {\n      const curHttpCacheKey = configToKey(response.config)\n      httpCache.setCache(curHttpCacheKey, response)\n    }\n    return response\n  },\n  (error) => {\n    return Promise.reject(error)\n  }\n)\n...\nexport function get<T = any>(url: string, config: AxiosRequestConfig = {}): Promise<T> {\n  const curHttpCacheKey: string = configToKey({\n    url,\n    ...config\n  })\n  if (!httpCache.hasCache(curHttpCacheKey)) {\n    const httpRequest = instance.get(url, config)\n    httpCache.setCache(curHttpCacheKey, httpRequest)\n    return httpRequest as Promise<T>\n  } else {\n    return Promise.resolve(httpCache.getCache(curHttpCacheKey))\n  }\n}\n```\n\nFirstly, encapsulate the request and check if it is in the cache before sending the `get` request. Set the cache value in the `interceptors.response`.\n\n### Fallback function\n\nIn some areas that require rollback functionality, this cache supports various caching operations such as `getNowCache`/`getPreviousCache`/`getNextCache`/`goPostionCache`/`goAbsPostionCache`.\n","readmeFilename":"README.md"}