1.1.0 • Published 4 years ago
keyv-cosmos v1.1.0
keyv-cosmos
Cosmos DB storage adapter for Keyv
CosmosDB Core (SQL) storage adapter for Keyv.
TTL functionality is supported.
Typings included.
Install
npm install --save keyv keyv-cosmos
Usage
const Keyv = require("keyv");
const KeyvCosmos = require("keyv-cosmos");
const store = new KeyvCosmos(connectionString,
{databaseId: databaseId, containerId: containerId});
const keyv = new Keyv(connectionString, {store: store});
keyv.on("error", handleConnectionError);