{"library":"koishi-plugin-cache-database","type":"library","category":null,"description":"koishi-plugin-cache-database provides a persistent caching service for Koishi chatbots, leveraging an underlying database backend to store and retrieve data. This allows bot applications to maintain state across restarts and scale more effectively than in-memory caching solutions. It is currently at version `2.1.0` and follows Koishi's rapid release cadence, which aligns with major Koishi framework updates (currently Koishi v4.x). Key differentiators include its tight integration with the Koishi `Context` system, offering a database-agnostic interface for caching while requiring a separate Koishi database plugin (e.g., SQLite, MySQL, PostgreSQL) to be configured. This plugin is part of the extensive Koishi ecosystem, which is primarily developed in TypeScript, providing strong type safety and developer tooling. Unlike simpler in-memory cache plugins, this solution ensures data persistence, making it suitable for applications requiring durable state management.","language":"javascript","status":"active","version":"2.1.0","tags":["javascript","bot","chatbot","koishi","plugin","cache","client","storage","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install koishi-plugin-cache-database","imports":["import { Context } from 'koishi'","import { Config } from 'koishi-plugin-cache-database'","import plugin from 'koishi-plugin-cache-database'"]},{"cmd":"yarn add koishi-plugin-cache-database","imports":[]},{"cmd":"pnpm add koishi-plugin-cache-database","imports":[]}],"homepage":"https://cache.koishi.chat/plugins/database.html","github":"https://github.com/koishijs/cache","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/koishi-plugin-cache-database","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/koishi-plugin-cache-database/compatibility"}}