Skip to content

Commit

Permalink
v0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrodger committed Mar 17, 2018
1 parent 5ca1137 commit 9414c8c
Show file tree
Hide file tree
Showing 7 changed files with 2,719 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,5 @@ typings/
# dotenv environment variables file
.env

*~

22 changes: 22 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
language: node_js
sudo: false

env:
- SENECA_VER=seneca@3.x.x
- SENECA_VER=seneca@plugin
- SENECA_VER=senecajs/seneca

node_js:
- '8'
- '6'
- '4'

services:
- redis-server

before_script:
- npm uninstall seneca
- npm install $SENECA_VER

after_script:
- npm run coveralls
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,25 @@
# seneca-redis-kv
Seneca plugin providing messages for a redis key-value store.
Depends on the [`seneca-kv`](https://github.com/voxgig/seneca-kv) plugin.



## Quick Example

```
Seneca()
.use('kv')
.use('redis-kv', {host: 'localhost', port: 6379}) // these are the defaults
.act('role:kv,cmd:set,key:foo,val:bar', function() {
this.act('role:kv,cmd:get,key:foo', function(ignore, out) {
console.log(out.val) // prints 'bar'
})
})
```


## Inbound Messages

* `role:kv,cmd:set`; params: `key`: string, `val`: object
* `role:kv,cmd:get`; params: `key`: string
* `role:kv,cmd:del`; params: `key`: string
Loading

0 comments on commit 9414c8c

Please sign in to comment.