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-12-14 01:37:19 +0400
committerNicolas Favre-Felix <n.favrefelix@gmail.com>2011-12-14 01:37:19 +0400
commit70371fa39d122773577505e6c52b10faf8cdf7f9 (patch)
treeb1e1155b642e4bef95784bfa8d5df363b094c281
parent72a0ea65908031cddee4ec7e8d86ec967774b194 (diff)
s/_specified/_instance
-rw-r--r--arrays.markdown1
-rw-r--r--redis_array.c4
-rw-r--r--redis_array.h2
3 files changed, 4 insertions, 3 deletions
diff --git a/arrays.markdown b/arrays.markdown
index e43ca6ff..b7031fed 100644
--- a/arrays.markdown
+++ b/arrays.markdown
@@ -114,6 +114,7 @@ RedisArray objects provide several methods to help understand the state of the c
* `$ra->_hosts()` → returns a list of hosts for the selected array.
* `$ra->_function()` → returns the name of the function used to extract key parts during consistent hashing.
* `$ra->_target($key)` → returns the host to be used for a certain key.
+* `$ra->_instance($host)` → returns a redis instance connected to a specific node; use with `_target` to get a single Redis object.
## Running the unit tests
<pre>
diff --git a/redis_array.c b/redis_array.c
index c3c02b74..d28276e4 100644
--- a/redis_array.c
+++ b/redis_array.c
@@ -45,7 +45,7 @@ zend_function_entry redis_array_functions[] = {
PHP_ME(RedisArray, _hosts, NULL, ZEND_ACC_PUBLIC)
PHP_ME(RedisArray, _target, NULL, ZEND_ACC_PUBLIC)
- PHP_ME(RedisArray, _specified, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(RedisArray, _instance, NULL, ZEND_ACC_PUBLIC)
PHP_ME(RedisArray, _function, NULL, ZEND_ACC_PUBLIC)
PHP_ME(RedisArray, _distributor, NULL, ZEND_ACC_PUBLIC)
PHP_ME(RedisArray, _rehash, NULL, ZEND_ACC_PUBLIC)
@@ -420,7 +420,7 @@ PHP_METHOD(RedisArray, _target)
}
}
-PHP_METHOD(RedisArray, _specified)
+PHP_METHOD(RedisArray, _instance)
{
zval *object;
RedisArray *ra;
diff --git a/redis_array.h b/redis_array.h
index 3c344a60..01eb5a41 100644
--- a/redis_array.h
+++ b/redis_array.h
@@ -10,7 +10,7 @@ PHP_METHOD(RedisArray, __construct);
PHP_METHOD(RedisArray, __call);
PHP_METHOD(RedisArray, _hosts);
PHP_METHOD(RedisArray, _target);
-PHP_METHOD(RedisArray, _specified);
+PHP_METHOD(RedisArray, _instance);
PHP_METHOD(RedisArray, _function);
PHP_METHOD(RedisArray, _distributor);
PHP_METHOD(RedisArray, _rehash);