Skip to content

Commit

Permalink
Added rollover example config
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Christiansen authored Mar 17, 2017
1 parent c63fc49 commit 83fd815
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,29 @@ the value is not found on new host.
* Wait until max session lifetime have expired
* Remove `oldHost` config
* Shut down old Redis host

### Configguration example
```
$config = [
// Predis client parameters
'parameters' => 'tcp://newhost:6379',
// Predis client options
'options' => null,
// Old host
'oldHost' => [
// Predis client parameters
'parameters' => 'tcp://oldhost:6379',
// Predis client options
'options' => null,
],
// Key prefix
'prefix' => 'simpleSAMLphp',
// Lifitime for all non expiring keys
'lifetime' => 288000
];
```

0 comments on commit 83fd815

Please sign in to comment.