@@ -425,8 +425,8 @@ $redis->incrBy('key1', 10); /* 14 */
425
425
##### Description
426
426
Increment the key with floating point precision.
427
427
##### 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
430
430
##### Return value
431
431
* FLOAT* the new value
432
432
##### Examples
@@ -2352,9 +2352,9 @@ $redis->hIncrBy('h', 'x', 1); /* h[x] ← 2 + 1. Returns 3 */
2352
2352
##### Description
2353
2353
Increments the value of a hash member by the provided float value
2354
2354
##### 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
2358
2358
##### Return value
2359
2359
* FLOAT* the new value
2360
2360
##### Examples
@@ -2416,9 +2416,9 @@ $redis->config("SET", "dir", "/var/run/redis/dumps/");
2416
2416
##### Description
2417
2417
Evaluate a LUA script serverside
2418
2418
##### 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.
2422
2422
##### Return value
2423
2423
Mixed. What is returned depends on what the LUA script itself returns, which could be a scalar value (int/string), or an array.
2424
2424
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)}}");
2440
2440
Evaluate a LUA script serverside, from the SHA1 hash of the script instead of the script itself. In order to run this command Redis
2441
2441
will have to have already loaded the script, either by running it or via the SCRIPT LOAD command.
2442
2442
##### 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
2446
2446
##### Return value
2447
2447
Mixed. See EVAL
2448
2448
##### Examples
@@ -2472,7 +2472,7 @@ $redis->script('exists', $script1, [$script2, $script3, ...]);
2472
2472
##### Description
2473
2473
The last error message (if any) returned from a SCRIPT call
2474
2474
##### Parameters
2475
- * none*
2475
+ * none*
2476
2476
##### Return Value
2477
2477
A string with the last returned script based error message, or NULL if there is no error
2478
2478
##### Examples
@@ -2486,7 +2486,7 @@ $err = $redis->getLastError();
2486
2486
##### Description
2487
2487
A utility method to prefix the value with the prefix setting for phpredis.
2488
2488
##### Parameters
2489
- * value* string. The value you wish to prefix
2489
+ * value* string. The value you wish to prefix
2490
2490
##### Return value
2491
2491
If a prefix is set up, the value now prefixed. If there is no prefix, the value will be returned unchanged.
2492
2492
##### Examples
@@ -2501,7 +2501,7 @@ A utility method to unserialize data with whatever serializer is set up. If the
2501
2501
returned unchanged. If there is a serializer set up, and the data passed in is malformed, an exception will be thrown.
2502
2502
This can be useful if phpredis is serializing values, and you return something from redis in a LUA script that is serialized.
2503
2503
##### Parameters
2504
- * value* string. The value to be unserialized
2504
+ * value* string. The value to be unserialized
2505
2505
##### Examples
2506
2506
<pre >
2507
2507
$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
2513
2513
Dump a key out of a redis database, the value of which can later be passed into redis using the RESTORE command. The data
2514
2514
that comes out of DUMP is a binary representation of the key as Redis stores it.
2515
2515
##### Parameters
2516
- * key* string
2516
+ * key* string
2517
2517
##### Return value
2518
2518
The Redis encoded value of the key, or FALSE if the key doesn't exist
2519
2519
##### Examples
@@ -2526,12 +2526,12 @@ $val = $redis->dump('foo'); // $val will be the Redis encoded key value
2526
2526
##### Description
2527
2527
Restore a key from the result of a DUMP operation.
2528
2528
##### 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)
2532
2532
##### Examples
2533
2533
<pre >
2534
2534
$redis->set('foo', 'bar');
2535
2535
$val = $redis->dump('foo');
2536
2536
$redis->restore('bar', 0, $val); // The key 'bar', will now be equal to the key 'foo'
2537
- </pre >
2537
+ </pre >
0 commit comments