Skip to content

Commit 83fd815

Browse files
author
Jacob Christiansen
authored
Added rollover example config
1 parent c63fc49 commit 83fd815

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,29 @@ the value is not found on new host.
8282
* Wait until max session lifetime have expired
8383
* Remove `oldHost` config
8484
* Shut down old Redis host
85+
86+
### Configguration example
87+
```
88+
$config = [
89+
// Predis client parameters
90+
'parameters' => 'tcp://newhost:6379',
91+
92+
// Predis client options
93+
'options' => null,
94+
95+
// Old host
96+
'oldHost' => [
97+
// Predis client parameters
98+
'parameters' => 'tcp://oldhost:6379',
99+
100+
// Predis client options
101+
'options' => null,
102+
],
103+
104+
// Key prefix
105+
'prefix' => 'simpleSAMLphp',
106+
107+
// Lifitime for all non expiring keys
108+
'lifetime' => 288000
109+
];
110+
```

0 commit comments

Comments
 (0)