Permalink
Browse files

s/_specified/_instance

  • Loading branch information...
1 parent 72a0ea6 commit 70371fa39d122773577505e6c52b10faf8cdf7f9 @nicolasff nicolasff committed Dec 13, 2011
Showing with 4 additions and 3 deletions.
  1. +1 −0 arrays.markdown
  2. +2 −2 redis_array.c
  3. +1 −1 redis_array.h
View
1 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>
View
4 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;
View
2 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);

0 comments on commit 70371fa

Please sign in to comment.