Permalink
Browse files

Readme updates about redis endpoint

  • Loading branch information...
tonistiigi committed Dec 17, 2012
1 parent 08532e7 commit 33fe6980c6521259b6a8a1a792c89e6128a3125b
Showing with 4 additions and 2 deletions.
  1. +4 −2 readme.markdown
View
@@ -2,7 +2,7 @@
super simple key-value store, intended for keeping appendable files.
-works on the server, with files, _and in the browser_ with `localStorage`.
+works on the server, with files or redis _and in the browser_ with `localStorage`.
on the server, it keeps the files in prefixed subdirectories, so that the directories do not get too large.
@@ -16,8 +16,10 @@ on the server, it keeps the files in prefixed subdirectories, so that the direct
by default, the stream is handled as newline seperated json.
```
-//server
+//files
var kv = require('kv')('/tmp/kv')
+//redis
+var kv = require('kv/redis')('redis://password@localhost:6379/prefix')
//client
var kv = require('kv')('kv:') //this will be prefixed to keys when saving in localStorage.
```

0 comments on commit 33fe698

Please sign in to comment.