Skip to content

Commit 1315302

Browse files
committed
test: explicit keys test
1 parent ecb022f commit 1315302

File tree

6 files changed

+6736
-7
lines changed

6 files changed

+6736
-7
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ cache:
66
notifications:
77
email: true
88
node_js:
9-
- '7'
9+
- '8'
1010
- '6'
1111
before_script:
1212
- npm prune

.vscode/tasks.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
{
22
"version": "0.1.0",
3-
"command": "tsc",
3+
"command": "npm",
44
"isShellCommand": true,
55
"showOutput": "always",
6-
"args": ["--sourceMap", "--watch", "--project"],
6+
"args": ["run"],
77
"tasks": [
88
{
9-
"taskName": ".",
9+
"taskName": "build",
1010
"problemMatcher": "$tsc-watch",
1111
"showOutput": "always",
12+
"args": ["--", "--sourceMap", "--watch"],
1213
"isBuildCommand": true,
1314
"isBackground": true
1415
},

README.md

+17
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,20 @@
22
A wrapper around node_redis with Promise and TypeScript support.
33

44
[![Build Status](https://travis-ci.org/mmkal/hodor.svg?branch=master)](https://travis-ci.org/mmkal/handy-redis)
5+
6+
## Using
7+
8+
```cli
9+
npm install --save handy-redis
10+
```
11+
12+
```JavaScript
13+
import { createClient } from 'handy-redis';
14+
15+
(async function() {
16+
const client = createClient(); // or call createClient(opts) using opts for https://npmjs.com/package/redis
17+
18+
await client.set('foo', 'bar');
19+
const foo = await client.get('foo');
20+
})();
21+
```

0 commit comments

Comments
 (0)