Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #677 #690

Merged
merged 4 commits into from
Feb 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions packages/memcache/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const keyv = new Keyv({ store: memcache });
await keyv.set("foo","bar", 6000) //Expiring time is optional

//get
let obj = await keyv.get("foo");
const obj = await keyv.get("foo");

//delete
await keyv.delete("foo");
Expand All @@ -56,8 +56,8 @@ await keyv1.set("foo","bar1", 6000) //Expiring time is optional
await keyv2.set("foo","bar2", 6000) //Expiring time is optional

//get
let obj1 = await keyv1.get("foo"); //will return bar1
let obj2 = await keyv2.get("foo"); //will return bar2
const obj1 = await keyv1.get("foo"); //will return bar1
const obj2 = await keyv2.get("foo"); //will return bar2

```

Expand All @@ -69,12 +69,12 @@ let obj2 = await keyv2.get("foo"); //will return bar2
```js

//set the server to the correct address and port
let server = "localhost:11211"
const server = "localhost:11211"

const Keyv = require("keyv");
const KeyvMemcache = require("@keyv/memcache");

const memcache = new KeyvMemcache();
const memcache = new KeyvMemcache(server);
const keyv = new Keyv({ store: memcache});
```

Expand All @@ -86,9 +86,9 @@ const keyv = new Keyv({ store: memcache});
```js

//best practice is to not hard code your config in code.
let user = "";
let pass = "";
let server = "XXX.XXX.XXX.memcachier.com:11211"
const user = "";
const pass = "";
const server = "XXX.XXX.XXX.memcachier.com:11211"

const Keyv = require("keyv");
const KeyvMemcache = require("@keyv/memcache");
Expand All @@ -106,9 +106,9 @@ const keyv = new Keyv({ store: memcache});
```js

//best practice is to not hard code your config in code.
let user = "";
let pass = "";
let server = "XXX.XXX.XXX.XXX.cloud.redislabs.com:XXX"
const user = "";
const pass = "";
const server = "XXX.XXX.XXX.XXX.cloud.redislabs.com:XXX"

const Keyv = require("keyv");
const KeyvMemcache = require("@keyv/memcache");
Expand Down
2 changes: 1 addition & 1 deletion packages/mysql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const keyv = new Keyv('mysql://user:pass@localhost:3306/dbname', {

## SSL

```
```js
const fs = require('fs');
const path = require('path');
const KeyvMysql = require('@keyv/mysql');
Expand Down
2 changes: 1 addition & 1 deletion packages/offline/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @keyv/offline [<img width="100" align="right" src="https://jaredwray.com/images/keyv.svg" alt="keyv">](https://github.com/jaredwra/keyv)

> offline storage adapter for Keyv
> Offline storage adapter for Keyv

[![build](https://github.com/jaredwray/keyv/actions/workflows/tests.yaml/badge.svg)](https://github.com/jaredwray/keyv/actions/workflows/tests.yaml)
[![codecov](https://codecov.io/gh/jaredwray/keyv/branch/main/graph/badge.svg?token=bRzR3RyOXZ)](https://codecov.io/gh/jaredwray/keyv)
Expand Down