8000 Fixed doc formatting · jrtkcoder/phpredis@e15fcfc · GitHub
[go: up one dir, main page]

Skip to content

Commit e15fcfc

Browse files
Fixed doc formatting
1 parent fe02d5d commit e15fcfc

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

README.markdown

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -425,8 +425,8 @@ $redis->incrBy('key1', 10); /* 14 */
425425
##### Description
426426
Increment the key with floating point precision.
427427
##### Parameters
428-
*key*
429-
*value*: (float) value that will be added to the key
428+
*key*
429+
*value*: (float) value that will be added to the key
430430
##### Return value
431431
*FLOAT* the new value
432432
##### Examples
@@ -2352,9 +2352,9 @@ $redis->hIncrBy('h', 'x', 1); /* h[x] ← 2 + 1. Returns 3 */
23522352
##### Description
23532353
Increments the value of a hash member by the provided float value
23542354
##### Parameters
2355-
*key*
2356-
*member*
2357-
*value*: (float) value that will be added to the member's value
2355+
*key*
2356+
*member*
2357+
*value*: (float) value that will be added to the member's value
23582358
##### Return value
23592359
*FLOAT* the new value
23602360
##### Examples
@@ -2416,9 +2416,9 @@ $redis->config("SET", "dir", "/var/run/redis/dumps/");
24162416
##### Description
24172417
Evaluate a LUA script serverside
24182418
##### Parameters
2419-
*script* string.
2420-
*args* array, optional.
2421-
*num_keys* int, optional.
2419+
*script* string.
2420+
*args* array, optional.
2421+
*num_keys* int, optional.
24222422
##### Return value
24232423
Mixed. What is returned depends on what the LUA script itself returns, which could be a scalar value (int/string), or an array.
24242424
Arrays that are returned can also contain other arrays, if that's how it was set up in your LUA script. If there is an error
@@ -2440,9 +2440,9 @@ $redis->eval("return {1,2,3,redis.call('lrange','mylist',0,-1)}}");
24402440
Evaluate a LUA script serverside, from the SHA1 hash of the script instead of the script itself. In order to run this command Redis
24412441
will have to have already loaded the script, either by running it or via the SCRIPT LOAD command.
24422442
##### Parameters
2443-
*script_sha* string. The sha1 encoded hash of the script you want to run.<br>
2444-
*args* array, optional. Arguments to pass to the LUA script.<br>
2445-
*num_keys* int, optional. The number of arguments that should go into the KEYS array, vs. the ARGV array when Redis spins the script
2443+
*script_sha* string. The sha1 encoded hash of the script you want to run.
2444+
*args* array, optional. Arguments to pass to the LUA script.
2445+
*num_keys* int, optional. The number of arguments that should go into the KEYS array, vs. the ARGV array when Redis spins the script
24462446
##### Return value
24472447
Mixed. See EVAL
24482448
##### Examples
@@ -2472,7 +2472,7 @@ $redis->script('exists', $script1, [$script2, $script3, ...]);
24722472
##### Description
24732473
The last error message (if any) returned from a SCRIPT call
24742474
##### Parameters
2475-
*none*
2475+
*none*
24762476
##### Return Value
24772477
A string with the last returned script based error message, or NULL if there is no error
24782478
##### Examples
@@ -2486,7 +2486,7 @@ $err = $redis->getLastError();
24862486
##### Description
24872487
A utility method to prefix the value with the prefix setting for phpredis.
24882488
##### Parameters
2489-
*value* string. The value you wish to prefix
2489+
*value* string. The value you wish to prefix
24902490
##### Return value
24912491
If a prefix is set up, the value now prefixed. If there is no prefix, the value will be returned unchanged.
24922492
##### Examples
@@ -2501,7 +2501,7 @@ A utility method to unserialize data with whatever serializer is set up. If the
25012501
returned unchanged. If there is a serializer set up, and the data passed in is malformed, an exception will be thrown.
25022502
This can be useful if phpredis is serializing values, and you return something from redis in a LUA script that is serialized.
25032503
##### Parameters
2504-
*value* string. The value to be unserialized
2504+
*value* string. The value to be unserialized
25052505
##### Examples
25062506
<pre>
25072507
$redis->setOpt(Redis::OPT_SERIALIZER, Redis::SERIALIZER_PHP);
@@ -2513,7 +2513,7 @@ $redis->_unserialize('a:3:{i:0;i:1;i:1;i:2;i:2;i:3;}'); // Will return Array(1,2
25132513
Dump a key out of a redis database, the value of which can later be passed into redis using the RESTORE command. The data
25142514
that comes out of DUMP is a binary representation of the key as Redis stores it.
25152515
##### Parameters
2516-
*key* string
2516+
*key* string
25172517
##### Return value
25182518
The Redis encoded value of the key, or FALSE if the key doesn't exist
25192519
##### Examples
@@ -2526,12 +2526,12 @@ $val = $redis->dump('foo'); // $val will be the Redis encoded key value
25262526
##### Description
25272527
Restore a key from the result of a DUMP operation.
25282528
##### Parameters
2529-
*key* string. The key name
2530-
*ttl* integer. How long the key should live (if zero, no expire will be set on the key)
2531-
*value* string (binary). The Redis encoded key value (from DUMP)
2529+
*key* string. The key name
2530+
*ttl* integer. How long the key should live (if zero, no expire will be set on the key)
2531+
*value* string (binary). The Redis encoded key value (from DUMP)
25322532
##### Examples
25332533
<pre>
25342534
$redis->set('foo', 'bar');
25352535
$val = $redis->dump('foo');
25362536
$redis->restore('bar', 0, $val); // The key 'bar', will now be equal to the key 'foo'
2537-
</pre>
2537+
</pre>

0 commit comments

Comments
 (0)
0