Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Favre-Felix <n.favrefelix@gmail.com>2011-09-18 22:18:53 +0400
committerNicolas Favre-Felix <n.favrefelix@gmail.com>2011-09-18 22:18:53 +0400
commit5a6a1d3f914219b9ca84a0e9f0a37939c8057ea9 (patch)
tree79fecf00f527b734223919320f9eb2a5d9a56f51 /arrays.markdown
parent991dfa5600b0ae270ef296c700f72a2906b0b4a1 (diff)
Small documentation changes
Diffstat (limited to 'arrays.markdown')
-rw-r--r--arrays.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/arrays.markdown b/arrays.markdown
index 374e7eb6..e43ca6ff 100644
--- a/arrays.markdown
+++ b/arrays.markdown
@@ -68,7 +68,7 @@ $ra->set("user2:name", "Mike");
## Key hashing
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.
-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.
+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.
## Migrating keys