{"_id":"@breadstone/ziegel-platform-caching","_rev":"9-1a4c8fcce147699e93222daaec8c8c31","name":"@breadstone/ziegel-platform-caching","dist-tags":{"latest":"0.0.9"},"versions":{"0.0.1":{"name":"@breadstone/ziegel-platform-caching","version":"0.0.1","author":{"url":"https://www.breadstone.de","name":"andre.wehlert","email":"awehlert@breadstone.de"},"license":"MIT","_id":"@breadstone/ziegel-platform-caching@0.0.1","maintainers":[{"name":"ruederennes","email":"realsancezz@gmail.com"}],"bugs":{"url":"https://breadstone.visualstudio.com/ziegel/_workitems/create/Bug"},"dist":{"shasum":"16e2767b23ce9d484f28652562a91c852c4daa6f","tarball":"https://registry.npmjs.org/@breadstone/ziegel-platform-caching/-/ziegel-platform-caching-0.0.1.tgz","fileCount":55,"integrity":"sha512-X/jGiFjAWJfi/V4ZK81hmpTwlfuwlyA+EeBrFlKBQz6RbluTiiwWD41LjXLfAEKzeu5VUs+Wr6vwgsi9/hfnOg==","signatures":[{"sig":"MEUCIQD/6rczSVo2WN0qNKGj0Q4XJTky/vZh/shFZpc4GtutHAIgC2i0DstbmsXJejy2zk+X+YPNLoKso+W8PP7VDODLKUA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":125683},"main":"./Index.js","types":"./Index.d.ts","module":"./Index.js","gitHead":"6e85e7a52b57c3f29013f4fd6383076cd22dc9a0","typings":"./Index.d.ts","_npmUser":{"name":"ruederennes","actor":{"name":"ruederennes","type":"user","email":"realsancezz@gmail.com"},"email":"realsancezz@gmail.com"},"commonjs":"./Index.js","repository":{"url":"https://breadstone.visualstudio.com/ziegel/_git/ziegel","type":"git"},"_npmVersion":"11.3.0","description":"Includes functionalities to cache data.","directories":{},"_nodeVersion":"24.0.1","dependencies":{"tslib":"^2.8.1","@breadstone/ziegel-core":"0.0.1","@breadstone/ziegel-platform":"0.0.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/ziegel-platform-caching_0.0.1_1750993751974_0.6699088151663586","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@breadstone/ziegel-platform-caching","version":"0.0.2","author":{"url":"https://www.breadstone.de","name":"andre.wehlert","email":"awehlert@breadstone.de"},"license":"MIT","_id":"@breadstone/ziegel-platform-caching@0.0.2","maintainers":[{"name":"ruederennes","email":"realsancezz@gmail.com"}],"bugs":{"url":"https://breadstone.visualstudio.com/ziegel/_workitems/create/Bug"},"dist":{"shasum":"26459413c6939ceb083c80bbe82890900fbacf63","tarball":"https://registry.npmjs.org/@breadstone/ziegel-platform-caching/-/ziegel-platform-caching-0.0.2.tgz","fileCount":56,"integrity":"sha512-5jfNTDnsd0YxTvpFNyWjpHIn9nxD0vFKgZCcciaqxqF34FhjdR2E9qP+wKY6KPg2qH8JY+qZh/sqQOHw5aNyQA==","signatures":[{"sig":"MEYCIQCe1Ba8FfoQ+pGpXDDhvWzofg67Z08x+RZ3jCv/+oh8bAIhAIWEr4ZxyrDpiSzod+UQ/HpxNZQ/4FmbwTsShV2V0rfP","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":126146},"main":"./Index.js","types":"./Index.d.ts","module":"./Index.js","gitHead":"810d476703d4a1544150277fa8510b8110622415","typings":"./Index.d.ts","_npmUser":{"name":"ruederennes","actor":{"name":"ruederennes","type":"user","email":"realsancezz@gmail.com"},"email":"realsancezz@gmail.com"},"commonjs":"./Index.js","repository":{"url":"https://breadstone.visualstudio.com/ziegel/_git/ziegel","type":"git"},"_npmVersion":"11.3.0","description":"Includes functionalities to cache data.","directories":{},"_nodeVersion":"24.0.1","dependencies":{"tslib":"^2.8.1","@breadstone/ziegel-core":"0.0.2","@breadstone/ziegel-platform":"0.0.2"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/ziegel-platform-caching_0.0.2_1750994531358_0.3993214548192543","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@breadstone/ziegel-platform-caching","version":"0.0.3","author":{"url":"https://www.breadstone.de","name":"andre.wehlert","email":"awehlert@breadstone.de"},"license":"MIT","_id":"@breadstone/ziegel-platform-caching@0.0.3","maintainers":[{"name":"ruederennes","email":"npm@breadstone.de"}],"homepage":"https://github.com/RueDeRennes/ziegel#readme","bugs":{"url":"https://github.com/RueDeRennes/ziegel/issues"},"dist":{"shasum":"dade9acf8c02ecd66ebe76c3aaf4b6c3120f0684","tarball":"https://registry.npmjs.org/@breadstone/ziegel-platform-caching/-/ziegel-platform-caching-0.0.3.tgz","fileCount":52,"integrity":"sha512-ikc/hIiEITolQPS5ZxTd+gNVfeYs3d8Alwl39/8Sxyn/GCmAqeKcM6syKrxZpppperq5sAS3ahvwUhcz8Ra3xA==","signatures":[{"sig":"MEQCIB3kmedoLvZlsussnKQKmlittB9a6vBp3Uh7tdT/TN+/AiA6kWqZC9c+h9CtWZuc5w9fq1yWru4m/+Xr4sRhK+HDfA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":39423},"main":"./Index.js","types":"./Index.d.ts","module":"./Index.js","gitHead":"b4d03ca0908154138403f2a27ca8efb54bee6e80","typings":"./Index.d.ts","_npmUser":{"name":"ruederennes","actor":{"name":"ruederennes","type":"user","email":"npm@breadstone.de"},"email":"npm@breadstone.de"},"commonjs":"./Index.js","repository":{"url":"git+https://github.com/RueDeRennes/ziegel.git","type":"git"},"_npmVersion":"10.9.2","description":"Includes functionalities to cache data.","directories":{},"_nodeVersion":"22.17.0","dependencies":{"tslib":"^2.8.1","@breadstone/ziegel-core":"0.0.3","@breadstone/ziegel-platform":"0.0.3"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/ziegel-platform-caching_0.0.3_1751575601955_0.7219839181940579","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"@breadstone/ziegel-platform-caching","version":"0.0.4","author":{"url":"https://www.breadstone.de","name":"andre.wehlert","email":"awehlert@breadstone.de"},"license":"MIT","_id":"@breadstone/ziegel-platform-caching@0.0.4","maintainers":[{"name":"ruederennes","email":"npm@breadstone.de"}],"homepage":"https://github.com/RueDeRennes/ziegel#readme","bugs":{"url":"https://github.com/RueDeRennes/ziegel/issues"},"dist":{"shasum":"1df009a34d62cdcd3ec81012161366aba1119e35","tarball":"https://registry.npmjs.org/@breadstone/ziegel-platform-caching/-/ziegel-platform-caching-0.0.4.tgz","fileCount":52,"integrity":"sha512-RDKaq7EhfhdPYinnujaxrHeyBLSyzu79Rpj5SCMajrHwb8abUH7XKUc+4ypVqL/EJhPHkqnKM1Ldcmb8RqHAOw==","signatures":[{"sig":"MEQCICgto7TqoTi0cJI74tVKCn8Yv9waGI7iKoY+1cL3DeM6AiBSTxqvuxLlxfXGHSOkbNG7cjvZN3xgGIbyXOqS4TzZBw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":39423},"main":"./Index.js","types":"./Index.d.ts","module":"./Index.js","gitHead":"87efb239ae0aa6121dc170cd110bc9be7bb0c622","typings":"./Index.d.ts","_npmUser":{"name":"ruederennes","actor":{"name":"ruederennes","type":"user","email":"npm@breadstone.de"},"email":"npm@breadstone.de"},"commonjs":"./Index.js","repository":{"url":"git+https://github.com/RueDeRennes/ziegel.git","type":"git"},"_npmVersion":"10.9.2","description":"Includes functionalities to cache data.","directories":{},"_nodeVersion":"22.17.0","dependencies":{"tslib":"^2.8.1","@breadstone/ziegel-core":"0.0.4","@breadstone/ziegel-platform":"0.0.4"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/ziegel-platform-caching_0.0.4_1751576126720_0.17716452516812664","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"@breadstone/ziegel-platform-caching","version":"0.0.5","author":{"url":"https://www.breadstone.de","name":"andre.wehlert","email":"awehlert@breadstone.de"},"license":"MIT","_id":"@breadstone/ziegel-platform-caching@0.0.5","maintainers":[{"name":"ruederennes","email":"npm@breadstone.de"}],"homepage":"https://github.com/RueDeRennes/ziegel#readme","bugs":{"url":"https://github.com/RueDeRennes/ziegel/issues"},"dist":{"shasum":"a7575f924509f3780a0125ff05bbfe5e56459d1a","tarball":"https://registry.npmjs.org/@breadstone/ziegel-platform-caching/-/ziegel-platform-caching-0.0.5.tgz","fileCount":52,"integrity":"sha512-w25NCj2HJUqTa6AB4FJXKAMSRHlG4zpR7PtoXIRO2RReCu4iZfLdoc8QvUjs8GevZHr9DUTDpsR6kLG/CszF3w==","signatures":[{"sig":"MEYCIQCMcAAbisEeBc82ZfGxjetxqYwGgqwQd+W+Pw1LZcPOvAIhAMY4WxWS1cmn4aWVhUYwk4TtIF4uMZE6jIoNOosdHgOx","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":43162},"main":"./Index.js","types":"./Index.d.ts","module":"./Index.js","gitHead":"7eb0efd9f6fa2d25da83ba6a3bd737a0da028bf7","typings":"./Index.d.ts","_npmUser":{"name":"ruederennes","actor":{"name":"ruederennes","type":"user","email":"npm@breadstone.de"},"email":"npm@breadstone.de"},"commonjs":"./Index.js","repository":{"url":"git+https://github.com/RueDeRennes/ziegel.git","type":"git"},"_npmVersion":"9.8.1","description":"Includes functionalities to cache data.","directories":{},"_nodeVersion":"22.16.0","dependencies":{"tslib":"^2.8.1","@breadstone/ziegel-core":"0.0.5","@breadstone/ziegel-platform":"0.0.5"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/ziegel-platform-caching_0.0.5_1751699308344_0.38135771877884594","host":"s3://npm-registry-packages-npm-production"}},"0.0.6":{"name":"@breadstone/ziegel-platform-caching","version":"0.0.6","author":{"url":"https://www.breadstone.de","name":"andre.wehlert","email":"awehlert@breadstone.de"},"license":"MIT","_id":"@breadstone/ziegel-platform-caching@0.0.6","maintainers":[{"name":"ruederennes","email":"npm@breadstone.de"}],"homepage":"https://github.com/RueDeRennes/ziegel#readme","bugs":{"url":"https://github.com/RueDeRennes/ziegel/issues"},"dist":{"shasum":"7c65727fa81fd4d08a73b621e630d4bda5ae410d","tarball":"https://registry.npmjs.org/@breadstone/ziegel-platform-caching/-/ziegel-platform-caching-0.0.6.tgz","fileCount":52,"integrity":"sha512-0ibuMbgWkg3bni9TROMMDKTbBWKg08OuU5iUfRaNOK9xAxMnbhoSueO3ITMgvk1qzs7HGQS+WxQPKWmYUt555g==","signatures":[{"sig":"MEYCIQDAZ3RBL24K9IEl7m7pNVH0UrlTgYXaEAiYowUAUZ8QAAIhAKqJaXbp/Cis+8pOyaWTq1sSZnl5AUMP4tkH7n0JEgrJ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":47675},"main":"./Index.js","types":"./Index.d.ts","module":"./Index.js","gitHead":"2513477b6a87dede7a429076b048197086e267b2","typings":"./Index.d.ts","_npmUser":{"name":"ruederennes","email":"npm@breadstone.de"},"commonjs":"./Index.js","repository":{"url":"git+https://github.com/RueDeRennes/ziegel.git","type":"git"},"_npmVersion":"11.4.2","description":"Includes functionalities to cache data.","directories":{},"_nodeVersion":"24.4.1","dependencies":{"tslib":"^2.8.1","@breadstone/ziegel-core":"0.0.6","@breadstone/ziegel-platform":"0.0.6"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/ziegel-platform-caching_0.0.6_1754467870654_0.03291295712544162","host":"s3://npm-registry-packages-npm-production"}},"0.0.7":{"name":"@breadstone/ziegel-platform-caching","version":"0.0.7","author":{"url":"https://www.breadstone.de","name":"andre.wehlert","email":"awehlert@breadstone.de"},"license":"MIT","_id":"@breadstone/ziegel-platform-caching@0.0.7","maintainers":[{"name":"ruederennes","email":"npm@breadstone.de"}],"homepage":"https://github.com/RueDeRennes/ziegel#readme","bugs":{"url":"https://github.com/RueDeRennes/ziegel/issues"},"dist":{"shasum":"a0343aa698a1450172c05e664d60c1eaa4625e4c","tarball":"https://registry.npmjs.org/@breadstone/ziegel-platform-caching/-/ziegel-platform-caching-0.0.7.tgz","fileCount":52,"integrity":"sha512-1fQ3zKTQqMZrEcjrW9uaXSnD6Hgxl6/YQDm6+Qfsgb3/NRFgP9qTD8/Qk8QqfaCmK31hIyFyR0FmP7jPvf79eQ==","signatures":[{"sig":"MEYCIQDBk2SF6sl36IpfmbOjEtb1e8pRabpmz0uUpb9PSjw5SgIhALSzGz2uHX43ZTtZGKLrLx/+2ANc27+JwKAlSzxn5ntC","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":47675},"main":"./Index.js","types":"./Index.d.ts","module":"./Index.js","gitHead":"7647e351d85d9dfbae9e9e9d84095559a75822d3","typings":"./Index.d.ts","_npmUser":{"name":"ruederennes","email":"npm@breadstone.de"},"commonjs":"./Index.js","repository":{"url":"git+https://github.com/RueDeRennes/ziegel.git","type":"git"},"_npmVersion":"11.4.2","description":"Includes functionalities to cache data.","directories":{},"_nodeVersion":"24.4.1","dependencies":{"tslib":"^2.8.1","@breadstone/ziegel-core":"0.0.7","@breadstone/ziegel-platform":"0.0.7"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/ziegel-platform-caching_0.0.7_1754468285346_0.03898684744248326","host":"s3://npm-registry-packages-npm-production"}},"0.0.8":{"name":"@breadstone/ziegel-platform-caching","version":"0.0.8","author":{"url":"https://www.breadstone.de","name":"andre.wehlert","email":"awehlert@breadstone.de"},"license":"MIT","_id":"@breadstone/ziegel-platform-caching@0.0.8","maintainers":[{"name":"ruederennes","email":"npm@breadstone.de"}],"homepage":"https://github.com/RueDeRennes/ziegel#readme","bugs":{"url":"https://github.com/RueDeRennes/ziegel/issues"},"dist":{"shasum":"bbac2a41cb5863f148b9f872a149b93c96e17597","tarball":"https://registry.npmjs.org/@breadstone/ziegel-platform-caching/-/ziegel-platform-caching-0.0.8.tgz","fileCount":52,"integrity":"sha512-3JNoeUFgwelxI2sKJLdcBqayzZiwTjyTe04cgQTecwg1x+IcZiETNa+I981Z8eu0/do7KuWeFvrTTJxZd67/gQ==","signatures":[{"sig":"MEQCIDtymI8CxUYoZCnB7YAhw8nI6/R4wi+9ncdfnluzNEMFAiA7Sw1xDDN2wdY7dmHU4Qoprrl5xHy6D08RDd/sD5VSBQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":46331},"main":"./Index.js","types":"./Index.d.ts","module":"./Index.js","gitHead":"e3ad0a5eb92747c06f8642ef6b1b2e012ef6cb77","typings":"./Index.d.ts","_npmUser":{"name":"ruederennes","email":"npm@breadstone.de"},"commonjs":"./Index.js","repository":{"url":"git+https://github.com/RueDeRennes/ziegel.git","type":"git"},"_npmVersion":"11.4.2","description":"Includes functionalities to cache data.","directories":{},"_nodeVersion":"24.4.1","dependencies":{"tslib":"^2.8.1","@breadstone/ziegel-core":"0.0.8","@breadstone/ziegel-platform":"0.0.8"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/ziegel-platform-caching_0.0.8_1754745313255_0.4174133890005902","host":"s3://npm-registry-packages-npm-production"}},"0.0.9":{"name":"@breadstone/ziegel-platform-caching","version":"0.0.9","description":"Includes functionalities to cache data.","license":"MIT","author":{"name":"andre.wehlert","email":"awehlert@breadstone.de","url":"https://www.breadstone.de"},"main":"./Index.js","module":"./Index.js","commonjs":"./Index.js","typings":"./Index.d.ts","types":"./Index.d.ts","repository":{"type":"git","url":"git+https://github.com/RueDeRennes/ziegel.git"},"bugs":{"url":"https://github.com/RueDeRennes/ziegel/issues"},"dependencies":{"@breadstone/ziegel-core":"0.0.9","@breadstone/ziegel-platform":"0.0.9","tslib":"^2.8.1"},"_id":"@breadstone/ziegel-platform-caching@0.0.9","gitHead":"efc417cb60db843da253c8b83aa7ea54fe94ed5f","homepage":"https://github.com/RueDeRennes/ziegel#readme","_nodeVersion":"24.4.1","_npmVersion":"11.4.2","dist":{"integrity":"sha512-/QDanqC9tby+flVobg/jgky+ruJsG9JXq4H6U9mNSdMoRT3ykyTw8bHDQfPCUvMHq2Kf6dDQnbJ/X2DqoOt3eg==","shasum":"04d6fac858c85d3dcbe857dfaba92f4d12429bca","tarball":"https://registry.npmjs.org/@breadstone/ziegel-platform-caching/-/ziegel-platform-caching-0.0.9.tgz","fileCount":52,"unpackedSize":46331,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBqctoe2WGVQvldKH8g2aBVV0KcXiWZxJ9IG4sPfvREkAiEAu9qa7PHkTgMXGyZud8l9Nf1T8ONQAkWAiVqHnKk1XuU="}]},"_npmUser":{"name":"ruederennes","email":"npm@breadstone.de"},"directories":{},"maintainers":[{"name":"ruederennes","email":"npm@breadstone.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ziegel-platform-caching_0.0.9_1756450339737_0.47313301738125"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-27T03:09:11.792Z","modified":"2025-08-29T06:52:20.130Z","0.0.1":"2025-06-27T03:09:12.150Z","0.0.2":"2025-06-27T03:22:11.556Z","0.0.3":"2025-07-03T20:46:42.125Z","0.0.4":"2025-07-03T20:55:26.883Z","0.0.5":"2025-07-05T07:08:28.637Z","0.0.6":"2025-08-06T08:11:10.810Z","0.0.7":"2025-08-06T08:18:05.536Z","0.0.8":"2025-08-09T13:15:13.439Z","0.0.9":"2025-08-29T06:52:19.917Z"},"bugs":{"url":"https://github.com/RueDeRennes/ziegel/issues"},"author":{"name":"andre.wehlert","email":"awehlert@breadstone.de","url":"https://www.breadstone.de"},"license":"MIT","homepage":"https://github.com/RueDeRennes/ziegel#readme","repository":{"type":"git","url":"git+https://github.com/RueDeRennes/ziegel.git"},"description":"Includes functionalities to cache data.","maintainers":[{"name":"ruederennes","email":"npm@breadstone.de"}],"readme":"# @breadstone/ziegel-platform-caching\r\n\r\n[![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](https://choosealicense.com/licenses/mit/)\r\n[![TypeScript](https://img.shields.io/badge/TypeScript-5.0+-blue.svg)](https://www.typescriptlang.org/)\r\n[![npm](https://img.shields.io/badge/npm-@breadstone/ziegel--platform--caching-red.svg)](https://www.npmjs.com/package/@breadstone/ziegel-platform-caching)\r\n\r\nCaching infrastructure and memory management for the ziegel platform. Provides multiple cache implementations, eviction policies, cache factories, and memory-efficient caching strategies for enterprise applications.\r\n\r\n> **Caching**: Enterprise caching with multiple strategies, eviction policies, and memory management for high-performance applications.\r\n\r\n## 🚀 Overview\r\n\r\n`@breadstone/ziegel-platform-caching` provides:\r\n- **Multiple Cache Types**: Session, transient, and infinite caching strategies\r\n- **Eviction Policies**: Configurable cache eviction and cleanup policies\r\n- **Cache Factory**: Factory pattern for creating and managing cache instances\r\n- **Cache Items**: Wrapper objects for cached data with metadata\r\n- **Caching Modes**: Different caching behaviors and strategies\r\n- **Memory Management**: Efficient memory usage and garbage collection support\r\n\r\n## 📦 Installation\r\n\r\n```bash\r\nnpm install @breadstone/ziegel-platform-caching\r\n# or\r\nyarn add @breadstone/ziegel-platform-caching\r\n```\r\n\r\n## 🧩 Features & Usage Examples\r\n\r\n### Basic Caching\r\n\r\n```typescript\r\nimport { CacheManager, MemoryCache } from '@breadstone/ziegel-platform-caching';\r\n\r\nconst cache = new MemoryCache();\r\nconst cacheManager = new CacheManager(cache);\r\n\r\n// Set cache value\r\nawait cacheManager.set('user:123', userData, { ttl: 3600 });\r\n\r\n// Get cache value\r\nconst user = await cacheManager.get<User>('user:123');\r\n\r\n// Remove from cache\r\nawait cacheManager.remove('user:123');\r\n```\r\n\r\n### Cache Decorators\r\n\r\n```typescript\r\nimport { Cacheable, CacheEvict } from '@breadstone/ziegel-platform-caching';\r\n\r\nclass UserService {\r\n  @Cacheable('users', { ttl: 3600 })\r\n  async getUser(id: string): Promise<User> {\r\n    return await this.userRepository.findById(id);\r\n  }\r\n\r\n  @CacheEvict('users')\r\n  async updateUser(id: string, data: Partial<User>): Promise<User> {\r\n    return await this.userRepository.update(id, data);\r\n  }\r\n}\r\n```\r\n\r\n### Multi-Level Cache\r\n\r\n```typescript\r\nimport {\r\n  MultiLevelCache,\r\n  MemoryCache,\r\n  StorageCache,\r\n  RedisCache\r\n} from '@breadstone/ziegel-platform-caching';\r\n\r\nconst l1 = new MemoryCache({ maxSize: 1000 });\r\nconst l2 = new StorageCache({ storageKey: 'app-cache' });\r\nconst l3 = new RedisCache({ host: 'redis-server' });\r\n\r\nconst multiCache = new MultiLevelCache([l1, l2, l3]);\r\n```\r\n\r\n### Cache Strategies\r\n\r\n```typescript\r\nimport {\r\n  LRUCacheStrategy,\r\n  TTLCacheStrategy,\r\n  CompositeCacheStrategy\r\n} from '@breadstone/ziegel-platform-caching';\r\n\r\nconst lruStrategy = new LRUCacheStrategy({ maxSize: 1000 });\r\nconst ttlStrategy = new TTLCacheStrategy({ defaultTtl: 3600 });\r\nconst strategy = new CompositeCacheStrategy([lruStrategy, ttlStrategy]);\r\n```\r\n\r\n### Distributed Caching\r\n\r\n```typescript\r\nimport { DistributedCache, RedisProvider } from '@breadstone/ziegel-platform-caching';\r\n\r\nconst redisProvider = new RedisProvider({\r\n  host: 'cache-cluster.example.com',\r\n  port: 6379,\r\n  cluster: true\r\n});\r\n\r\nconst distributedCache = new DistributedCache(redisProvider);\r\nawait distributedCache.set('global:config', config);\r\n```\r\n\r\n### Cache Metrics\r\n\r\n```typescript\r\nimport { CacheMetrics, CacheAnalytics } from '@breadstone/ziegel-platform-caching';\r\n\r\nconst metrics = new CacheMetrics();\r\nconst analytics = new CacheAnalytics(metrics);\r\n\r\n// Get cache statistics\r\nconst stats = analytics.getStatistics();\r\nconsole.log(`Hit Rate: ${stats.hitRate}%`);\r\nconsole.log(`Miss Count: ${stats.missCount}`);\r\n```\r\n\r\n## 📚 Package import points\r\n\r\n```typescript\r\nimport {\r\n    // Core Caching\r\n    CacheManager,\r\n    ICache,\r\n    CacheEntry,\r\n\r\n    // Cache Implementations\r\n    MemoryCache,\r\n    StorageCache,\r\n    RedisCache,\r\n    MultiLevelCache,\r\n\r\n    // Strategies\r\n    LRUCacheStrategy,\r\n    TTLCacheStrategy,\r\n    CompositeCacheStrategy,\r\n\r\n    // Decorators\r\n    Cacheable,\r\n    CacheEvict,\r\n    CacheInvalidate,\r\n\r\n    // Distributed\r\n    DistributedCache,\r\n    RedisProvider,\r\n\r\n    // Metrics\r\n    CacheMetrics,\r\n    CacheAnalytics\r\n} from '@breadstone/ziegel-platform-caching';\r\n```\r\n\r\n## 📚 API Documentation\r\n\r\nFor detailed API documentation, visit: [API Docs](./../../.docs/api/ziegel-platform-caching/index.md)\r\n\r\n## Related Packages\r\n\r\n- **@breadstone/ziegel-platform**: Core platform services\r\n- **@breadstone/ziegel-core**: Foundation utilities\r\n- **@breadstone/ziegel-platform-configuration**: Configuration management\r\n\r\n## License\r\n\r\nMIT\r\n\r\n## Issues\r\n\r\nPlease report bugs and feature requests in the [Issue Tracker](https://github.com/RueDeRennes/ziegel/issues)\r\n\r\n---\r\n\r\n*Part of the [ziegel Enterprise TypeScript Framework](../../README.md)*","readmeFilename":"README.md"}