Lines Matching refs:keyv

2 	<img width="250" src="https://rawgit.com/lukechilds/keyv/master/media/logo.svg" alt="keyv">
9 …ild Status](https://travis-ci.org/lukechilds/keyv.svg?branch=master)](https://travis-ci.org/lukech…
10 …//coveralls.io/repos/github/lukechilds/keyv/badge.svg?branch=master)](https://coveralls.io/github/…
11 [![npm](https://img.shields.io/npm/dm/keyv.svg)](https://www.npmjs.com/package/keyv)
12 [![npm](https://img.shields.io/npm/v/keyv.svg)](https://www.npmjs.com/package/keyv)
36 npm install --save keyv
42 npm install --save @keyv/redis
43 npm install --save @keyv/mongo
44 npm install --save @keyv/sqlite
45 npm install --save @keyv/postgres
46 npm install --save @keyv/mysql
52 const Keyv = require('keyv');
55 const keyv = new Keyv();
56 const keyv = new Keyv('redis://user:pass@localhost:6379');
57 const keyv = new Keyv('mongodb://user:pass@localhost:27017/dbname');
58 const keyv = new Keyv('sqlite://path/to/database.sqlite');
59 const keyv = new Keyv('postgresql://user:pass@localhost:5432/dbname');
60 const keyv = new Keyv('mysql://user:pass@localhost:3306/dbname');
63 keyv.on('error', err => console.log('Connection Error', err));
65 await keyv.set('foo', 'expires in 1 second', 1000); // true
66 await keyv.set('foo', 'never expires'); // true
67 await keyv.get('foo'); // 'never expires'
68 await keyv.delete('foo'); // true
69 await keyv.clear(); // undefined
96 const keyv = new Keyv({ serialize: JSON.stringify, deserialize: JSON.parse });
103 … covered by [over 150 integration tests](https://travis-ci.org/lukechilds/keyv/jobs/260418145) to …
107keyv/redis](https://github.com/lukechilds/keyv-redis) | Yes | [![Build Status](https://travis-ci.o…
108keyv/mongo](https://github.com/lukechilds/keyv-mongo) | Yes | [![Build Status](https://travis-ci.o…
109keyv/sqlite](https://github.com/lukechilds/keyv-sqlite) | No | [![Build Status](https://travis-ci.…
110keyv/postgres](https://github.com/lukechilds/keyv-postgres) | No | [![Build Status](https://travis…
111keyv/mysql](https://github.com/lukechilds/keyv-mysql) | No | [![Build Status](https://travis-ci.or…
118 const Keyv = require('keyv');
121 const keyv = new Keyv({ store: myAdapter });
133 const Keyv = require('keyv');
137 const keyv = new Keyv({ store: lru });
143 - [keyv-file](https://github.com/zaaack/keyv-file) - File system storage adapter for Keyv
144 - [keyv-dynamodb](https://www.npmjs.com/package/keyv-dynamodb) - DynamoDB storage adapter for Keyv
174 // After npm install --save keyv-redis
207 Default: `'keyv'`