Skip to content

Commit

Permalink
Updating README
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Nov 20, 2016
1 parent db2f1ad commit c3383d1
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,23 @@ Twitter authentication will create `/auth`, `/auth/twitter`, & `/auth/twitter/ca
}
```

## ETags
To enable state propagation set `notify` to `true`, and when receiving new state pass to `instance.server.etags.update()`.

```
{
"etags": {
"notify": true,
"onchange": (eventName, serializedCache) => {
... // serializedCache needs to be passed to other instances `etags.update()`
},
"update": serializedCache => {
... // Override if you want to do more than set new state
}
}
}
```

## Sessions
Sessions can use a memory (default) or redis store. Memory will limit your sessions to a single server instance, while redis will allow you to share sessions across a cluster of processes, or machines. To use redis, set the `store` property to "redis".

Expand Down

0 comments on commit c3383d1

Please sign in to comment.