{"repo":"microlinkhq/keyvhq","free":true,"listed":false,"github":"https://github.com/microlinkhq/keyvhq","clone":"git clone https://github.com/microlinkhq/keyvhq.git","description":"Simple key-value storage for Node.js with TTL and pluggable backends via Keyv adapters.","language":"JavaScript","stars":446,"topics":["key-value","storage","cache","store","redis","adapter","keyv","memory","nodejs","ttl"],"license":"MIT","category":"databases-storage","readme_excerpt":"Keyv is a simple key-value storage with support for multiple backend adapters (MySQL, PostgreSQL, SQLite, Redis, Mongo, DynamoDB, Firestore, Memcached, and more). Features Forked from keyv, plus: - It isn't bloated. - It supports namespaces. - It supports TTL based expiry. - It has a simple Promise based API. - It handles all JSON types plus Buffer . - It's support a vary of storages adapters. - It can be easily embed inside another module. - It works with any storage that implements the Map API. - it handles database errors (db failures won't kill your app). - It supports the current active LTS version of Node.js or higher. - It's suitable as a TTL based cache or persistent key-value store. Installation You can optionally install the storage adapter you want to use: If you don't provide a specific storage adapter, a in-memory storage adapter is used by default. Usage Just create a new Keyv instance, using an specific storage adapter: Namespaces You can namespace your Keyv instance to avoid key collisions and allow you to clear only a certain namespace while using the same database. Serialization Keyv uses json-buffer for data serialization to ensure consistency across different backends. You can optionally provide your own serialization functions to support extra data types or to serialize to something other than JSON. The following example is using @keyvhq/compress as serializer: Storage adapters Keyv is designed to be easily embedded into other modules to add cache support","default_branch":null,"files":null,"tree":[],"storefront":"/r/microlinkhq","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/microlinkhq/keyvhq/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}