{"_id":"@types/flat-cache","_rev":"4607793","name":"@types/flat-cache","description":"TypeScript definitions for flat-cache","dist-tags":{"latest":"2.0.2","ts2.0":"2.0.0","ts2.1":"2.0.0","ts2.2":"2.0.0","ts2.3":"2.0.0","ts2.4":"2.0.0","ts2.5":"2.0.0","ts2.6":"2.0.0","ts2.7":"2.0.0","ts2.8":"2.0.0","ts2.9":"2.0.0","ts3.0":"2.0.0","ts3.1":"2.0.0","ts3.2":"2.0.0","ts3.3":"2.0.0","ts3.4":"2.0.0","ts3.5":"2.0.0","ts3.6":"2.0.0","ts3.7":"2.0.0","ts3.8":"2.0.0","ts3.9":"2.0.0","ts4.0":"2.0.0","ts4.1":"2.0.0","ts4.2":"2.0.0","ts4.3":"2.0.0","ts4.4":"2.0.0","ts4.5":"2.0.2","ts4.6":"2.0.2","ts4.7":"2.0.2","ts4.8":"2.0.2","ts4.9":"2.0.2","ts5.0":"2.0.2","ts5.1":"2.0.2","ts5.2":"2.0.2","ts5.3":"2.0.2","ts5.4":"2.0.2","ts5.5":"2.0.2","ts5.6":"2.0.2","ts5.7":"2.0.2","ts5.8":"2.0.2","ts5.9":"2.0.2","ts6.0":"2.0.2"},"maintainers":[{"name":"types","email":""}],"time":{"modified":"2026-04-10T17:45:21.000Z","created":"2019-05-15T16:11:17.629Z","2.0.2":"2023-11-07T03:38:15.555Z","2.0.1":"2023-10-18T02:39:36.618Z","2.0.0":"2019-05-15T16:11:17.629Z"},"users":{},"repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/flat-cache"},"versions":{"2.0.2":{"name":"@types/flat-cache","version":"2.0.2","description":"TypeScript definitions for flat-cache","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/flat-cache","license":"MIT","contributors":[{"name":"Kevin Pollet","githubUsername":"kevinpollet","url":"https://github.com/kevinpollet"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/flat-cache"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"c292a4e3ddfaba339cb475883ae3b68bdc50a2e7446be196140aa5662278f247","typeScriptVersion":"4.5","_id":"@types/flat-cache@2.0.2","dist":{"shasum":"00964093186e912bfb049ebc6117b0f48844a0c2","size":1722,"noattachment":false,"key":"/@types/flat-cache/-/@types/flat-cache-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/flat-cache/download/@types/flat-cache-2.0.2.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/flat-cache_2.0.2_1699328295393_0.28178340092716936"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-11-07T03:38:15.555Z","publish_time":1699328295555,"_source_registry_name":"default","_cnpm_publish_time":1699328295555},"2.0.1":{"name":"@types/flat-cache","version":"2.0.1","description":"TypeScript definitions for flat-cache","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/flat-cache","license":"MIT","contributors":[{"name":"Kevin Pollet","githubUsername":"kevinpollet","url":"https://github.com/kevinpollet"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/flat-cache"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"5f5068ea75c0d3f3c298d411fd4c62a9585888a1e783c7978413d3ea66d1d9c8","typeScriptVersion":"4.5","_id":"@types/flat-cache@2.0.1","dist":{"shasum":"e9821ef3262683e5a21588b1d939000ac4f65c75","size":1725,"noattachment":false,"key":"/@types/flat-cache/-/@types/flat-cache-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/flat-cache/download/@types/flat-cache-2.0.1.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/flat-cache_2.0.1_1697596776415_0.573327967703297"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-10-18T02:39:36.618Z","publish_time":1697596776618,"_source_registry_name":"default","_cnpm_publish_time":1697596776618},"2.0.0":{"name":"@types/flat-cache","version":"2.0.0","description":"TypeScript definitions for flat-cache","license":"MIT","contributors":[{"name":"Kevin Pollet","url":"https://github.com/kevinpollet","githubUsername":"kevinpollet"}],"main":"","types":"index","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/flat-cache"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"d7ae5b54341ede39fa8651521aa27d4b49e918debef24b1047d8cc4dae60a2a0","typeScriptVersion":"2.0","_id":"@types/flat-cache@2.0.0","dist":{"shasum":"64e5d3b426c392b603a208a55bdcc7d920ce6e57","size":1660,"noattachment":false,"key":"/@types/flat-cache/-/@types/flat-cache-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/flat-cache/download/@types/flat-cache-2.0.0.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/flat-cache_2.0.0_1557936677468_0.29777176550666073"},"_hasShrinkwrap":false,"publish_time":1557936677629,"_cnpm_publish_time":1557936677629}},"readme":"# Installation\r\n> `npm install --save @types/flat-cache`\r\n\r\n# Summary\r\nThis package contains type definitions for flat-cache (https://github.com/royriojas/flat-cache#readme).\r\n\r\n# Details\r\nFiles were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/flat-cache.\r\n## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/flat-cache/index.d.ts)\r\n````ts\r\nexport interface Cache {\n    load(cacheId: string, cacheDir?: string): void;\n    loadFile(pathToFile: string): void;\n    all(): { [key: string]: any };\n    keys(): string[];\n    setKey(key: string, value: any): void;\n    removeKey(key: string): void;\n    getKey(key: string): any;\n    save(noPrune?: boolean): void;\n    removeCacheFile(): boolean;\n    destroy(): void;\n}\n\nexport function load(cacheId: string, cacheDir?: string): Cache;\n\nexport function create(cacheId: string, cacheDir?: string): Cache;\n\nexport function createFromFile(filePath: string): Cache;\n\nexport function clearCacheById(cacheId: string, cacheDir?: string): boolean;\n\nexport function clearAll(cacheDir?: string): boolean;\n\r\n````\r\n\r\n### Additional Details\r\n * Last updated: Tue, 07 Nov 2023 03:09:37 GMT\r\n * Dependencies: none\r\n\r\n# Credits\r\nThese definitions were written by [Kevin Pollet](https://github.com/kevinpollet).\r\n","_attachments":{},"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/flat-cache","license":"MIT"}