Skip to content

Commit 5a6a1d3

Browse files
committed
Small documentation changes
1 parent 991dfa5 commit 5a6a1d3

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

README.markdown

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ session.save_path = "tcp://host1:6379?weight=1, tcp://host2:6379?weight=2&timeou
5656
Sessions have a lifetime expressed in seconds and stored in the INI variable "session.gc_maxlifetime". You can change it with [`ini_set()`](http://php.net/ini_set).
5757
The session handler requires a version of Redis with the `SETEX` command (at least 2.0).
5858

59+
60+
Distributed Redis Array
61+
=======================
62+
63+
See [dedicated page](https://github.com/nicolasff/phpredis/blob/master/arrays.markdown#readme).
64+
65+
5966
Error handling
6067
==============
6168

arrays.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ $ra->set("user2:name", "Mike");
6868
## Key hashing
6969
By default and in order to be compatible with other libraries, phpredis will try to find a substring enclosed in curly braces within the key name, and use it to distribute the data.
7070

71-
For instance, the keys “{user:1}:name” and “{user:1}:email” will be stored on the same server as only “user:1” will be hashed. You can provide a custom function name in your redis array with the "function" option; this function will be called every time a key needs to be hashed.
71+
For instance, the keys “{user:1}:name” and “{user:1}:email” will be stored on the same server as only “user:1” will be hashed. You can provide a custom function name in your redis array with the "function" option; this function will be called every time a key needs to be hashed. It should take a string and return a string.
7272

7373

7474
## Migrating keys

0 commit comments

Comments
 (0)