Skip to content

Commit

Permalink
s/_specified/_instance
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasff committed Dec 13, 2011
1 parent 72a0ea6 commit 70371fa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions arrays.markdown
Expand Up @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions redis_array.c
Expand Up @@ -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)
Expand Down Expand Up @@ -420,7 +420,7 @@ PHP_METHOD(RedisArray, _target)
}
}

PHP_METHOD(RedisArray, _specified)
PHP_METHOD(RedisArray, _instance)
{
zval *object;
RedisArray *ra;
Expand Down
2 changes: 1 addition & 1 deletion redis_array.h
Expand Up @@ -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);
Expand Down

0 comments on commit 70371fa

Please sign in to comment.