Skip to content

Commit c63fc49

Browse files
author
Jacob Christiansen
authored
Update README.md
1 parent 6ace9f9 commit c63fc49

File tree

1 file changed

+17
-19
lines changed

1 file changed

+17
-19
lines changed

README.md

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -43,30 +43,16 @@ options in config.php
4343

4444
'store.type' => 'redis:Redis'
4545

46-
Rollover to new server
47-
----------------------
48-
The module has build in support for doing rolling update to a new Redis host.
49-
All writes are only done to the new host, but all reads will fall back to the old host if
50-
the value is not found on new host.
51-
52-
### How-to
53-
* Start new Redis host
54-
* Add new host to config file (`parameters` and `options`) and add the old host to `oldHost` option
55-
* Wait until max session lifetime have expired
56-
* Remove `oldHost` config
57-
* Shut down old Redis host
58-
5946
Configuration options
6047
---------------------
61-
* `parameters` Connection parameters for the underlying predis client. See
62-
https://github.com/nrk/predis/wiki/Connection-Parameters for details
63-
* `options` Client options for the underlying predis client. See
64-
https://github.com/nrk/predis/wiki/Client-Options for details. // Key prefix
48+
* `parameters` Connection parameters for the underlying predis client. See
49+
[connection parameters](https://github.com/nrk/predis/wiki/Connection-Parameters) for details
50+
* `options` Client options for the underlying predis client. See [options](https://github.com/nrk/predis/wiki/Client-Options) for details
6551
* `prefix` Key prefix for all keys stored in Redis
6652
* `lifetime` Default lifetime for non-expiring keys in Redis
6753
* `oldHost` configuration for old Redis host when doing rollover
68-
* `parameters` Connection parameters for the underlying predis client.
69-
* `options` Client options for the underlying predis client.
54+
* `parameters` Connection parameters for the underlying predis client
55+
* `options` Client options for the underlying predis client
7056

7157
### Example
7258
```
@@ -84,3 +70,15 @@ $config = [
8470
'lifetime' => 288000
8571
];
8672
```
73+
Rollover to new server
74+
----------------------
75+
The module has build in support for doing rolling update to a new Redis host.
76+
All writes are only done to the new host, but all reads will fall back to the old host if
77+
the value is not found on new host.
78+
79+
### How-to
80+
* Start new Redis host
81+
* Add new host to config file (`parameters` and `options`) and add the old host to `oldHost` option
82+
* Wait until max session lifetime have expired
83+
* Remove `oldHost` config
84+
* Shut down old Redis host

0 commit comments

Comments
 (0)