1.1.0 • Published 4 years ago

keyv-cosmos v1.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

keyv-cosmos

Cosmos DB storage adapter for Keyv

npm Codacy Badge

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);