Skip to content

Commit

Permalink
Added: simple get started snippet
Browse files Browse the repository at this point in the history
Added: WIP disclaimer for testing
  • Loading branch information
iuioiua committed Jun 30, 2022
1 parent de10118 commit 86a3c63
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# r2d2

Simple, lightweight Redis library for Deno.

```ts
import { sendCommand } from "https://deno.land/x/r2d2/mod.ts";

const redisConn = await Deno.connect({ port: 6379 });

/** Resolves to "OK" */
await sendCommand(redisConn, ["SET", "hello", "world"]);

/** Prints "world" */
console.log(await sendCommand(redisConn, ["GET", "hello"]));
```
1 change: 1 addition & 0 deletions test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** WIP */
import {
afterAll,
afterEach,
Expand Down

0 comments on commit 86a3c63

Please sign in to comment.