Skip to content

Commit 70371fa

Browse files
committed
s/_specified/_instance
1 parent 72a0ea6 commit 70371fa

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

arrays.markdown

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ RedisArray objects provide several methods to help understand the state of the c
114114
* `$ra->_hosts()` → returns a list of hosts for the selected array.
115115
* `$ra->_function()` → returns the name of the function used to extract key parts during consistent hashing.
116116
* `$ra->_target($key)` → returns the host to be used for a certain key.
117+
* `$ra->_instance($host)` → returns a redis instance connected to a specific node; use with `_target` to get a single Redis object.
117118

118119
## Running the unit tests
119120
<pre>

redis_array.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ zend_function_entry redis_array_functions[] = {
4545

4646
PHP_ME(RedisArray, _hosts, NULL, ZEND_ACC_PUBLIC)
4747
PHP_ME(RedisArray, _target, NULL, ZEND_ACC_PUBLIC)
48-
PHP_ME(RedisArray, _specified, NULL, ZEND_ACC_PUBLIC)
48+
PHP_ME(RedisArray, _instance, NULL, ZEND_ACC_PUBLIC)
4949
PHP_ME(RedisArray, _function, NULL, ZEND_ACC_PUBLIC)
5050
PHP_ME(RedisArray, _distributor, NULL, ZEND_ACC_PUBLIC)
5151
PHP_ME(RedisArray, _rehash, NULL, ZEND_ACC_PUBLIC)
@@ -420,7 +420,7 @@ PHP_METHOD(RedisArray, _target)
420420
}
421421
}
422422

423-
PHP_METHOD(RedisArray, _specified)
423+
PHP_METHOD(RedisArray, _instance)
424424
{
425425
zval *object;
426426
RedisArray *ra;

redis_array.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ PHP_METHOD(RedisArray, __construct);
1010
PHP_METHOD(RedisArray, __call);
1111
PHP_METHOD(RedisArray, _hosts);
1212
PHP_METHOD(RedisArray, _target);
13-
PHP_METHOD(RedisArray, _specified);
13+
PHP_METHOD(RedisArray, _instance);
1414
PHP_METHOD(RedisArray, _function);
1515
PHP_METHOD(RedisArray, _distributor);
1616
PHP_METHOD(RedisArray, _rehash);

0 commit comments

Comments
 (0)