@@ -6,7 +6,7 @@ discard block |
||
| 6 | 6 | * Represents a connection to a set of memcached servers. |
| 7 | 7 | * @link https://php.net/manual/en/class.memcached.php |
| 8 | 8 | */ |
| 9 | -class Memcached { |
|
| 9 | +class Memcached { |
|
| 10 | 10 | |
| 11 | 11 | /** |
| 12 | 12 | * <p>Enables or disables payload compression. When enabled, |
@@ -498,7 +498,7 @@ discard block |
||
| 498 | 498 | * @param $persistent_id [optional] |
| 499 | 499 | * @param $callback [optional] |
| 500 | 500 | */ |
| 501 | - public function __construct ($persistent_id = '', $on_new_object_cb = null) {} |
|
| 501 | + public function __construct($persistent_id = '', $on_new_object_cb = null) {} |
|
| 502 | 502 | |
| 503 | 503 | /** |
| 504 | 504 | * (PECL memcached >= 0.1.0)<br/> |
@@ -506,7 +506,7 @@ discard block |
||
| 506 | 506 | * @link https://php.net/manual/en/memcached.getresultcode.php |
| 507 | 507 | * @return int Result code of the last Memcached operation. |
| 508 | 508 | */ |
| 509 | - public function getResultCode () {} |
|
| 509 | + public function getResultCode() {} |
|
| 510 | 510 | |
| 511 | 511 | /** |
| 512 | 512 | * (PECL memcached >= 1.0.0)<br/> |
@@ -514,7 +514,7 @@ discard block |
||
| 514 | 514 | * @link https://php.net/manual/en/memcached.getresultmessage.php |
| 515 | 515 | * @return string Message describing the result of the last Memcached operation. |
| 516 | 516 | */ |
| 517 | - public function getResultMessage () {} |
|
| 517 | + public function getResultMessage() {} |
|
| 518 | 518 | |
| 519 | 519 | /** |
| 520 | 520 | * (PECL memcached >= 0.1.0)<br/> |
@@ -533,7 +533,7 @@ discard block |
||
| 533 | 533 | * The <b>Memcached::getResultCode</b> will return |
| 534 | 534 | * <b>Memcached::RES_NOTFOUND</b> if the key does not exist. |
| 535 | 535 | */ |
| 536 | - public function get ($key, callable $cache_cb = null, $flags = 0) {} |
|
| 536 | + public function get($key, callable $cache_cb = null, $flags = 0) {} |
|
| 537 | 537 | |
| 538 | 538 | /** |
| 539 | 539 | * (PECL memcached >= 0.1.0)<br/> |
@@ -555,7 +555,7 @@ discard block |
||
| 555 | 555 | * The <b>Memcached::getResultCode</b> will return |
| 556 | 556 | * <b>Memcached::RES_NOTFOUND</b> if the key does not exist. |
| 557 | 557 | */ |
| 558 | - public function getByKey ($server_key, $key, callable $cache_cb = null, $flags = 0) {} |
|
| 558 | + public function getByKey($server_key, $key, callable $cache_cb = null, $flags = 0) {} |
|
| 559 | 559 | |
| 560 | 560 | /** |
| 561 | 561 | * (PECL memcached >= 0.1.0)<br/> |
@@ -570,7 +570,7 @@ discard block |
||
| 570 | 570 | * @return mixed the array of found items or <b>FALSE</b> on failure. |
| 571 | 571 | * Use <b>Memcached::getResultCode</b> if necessary. |
| 572 | 572 | */ |
| 573 | - public function getMulti (array $keys, $flags = null) {} |
|
| 573 | + public function getMulti(array $keys, $flags = null) {} |
|
| 574 | 574 | |
| 575 | 575 | /** |
| 576 | 576 | * (PECL memcached >= 0.1.0)<br/> |
@@ -588,7 +588,7 @@ discard block |
||
| 588 | 588 | * @return array the array of found items or <b>FALSE</b> on failure. |
| 589 | 589 | * Use <b>Memcached::getResultCode</b> if necessary. |
| 590 | 590 | */ |
| 591 | - public function getMultiByKey ($server_key, array $keys, $flags = 0) {} |
|
| 591 | + public function getMultiByKey($server_key, array $keys, $flags = 0) {} |
|
| 592 | 592 | |
| 593 | 593 | /** |
| 594 | 594 | * (PECL memcached >= 0.1.0)<br/> |
@@ -606,7 +606,7 @@ discard block |
||
| 606 | 606 | * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
| 607 | 607 | * Use <b>Memcached::getResultCode</b> if necessary. |
| 608 | 608 | */ |
| 609 | - public function getDelayed (array $keys, $with_cas = null, callable $value_cb = null) {} |
|
| 609 | + public function getDelayed(array $keys, $with_cas = null, callable $value_cb = null) {} |
|
| 610 | 610 | |
| 611 | 611 | /** |
| 612 | 612 | * (PECL memcached >= 0.1.0)<br/> |
@@ -627,7 +627,7 @@ discard block |
||
| 627 | 627 | * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
| 628 | 628 | * Use <b>Memcached::getResultCode</b> if necessary. |
| 629 | 629 | */ |
| 630 | - public function getDelayedByKey ($server_key, array $keys, $with_cas = null, callable $value_cb = null) {} |
|
| 630 | + public function getDelayedByKey($server_key, array $keys, $with_cas = null, callable $value_cb = null) {} |
|
| 631 | 631 | |
| 632 | 632 | /** |
| 633 | 633 | * (PECL memcached >= 0.1.0)<br/> |
@@ -637,7 +637,7 @@ discard block |
||
| 637 | 637 | * The <b>Memcached::getResultCode</b> will return |
| 638 | 638 | * <b>Memcached::RES_END</b> if result set is exhausted. |
| 639 | 639 | */ |
| 640 | - public function fetch () {} |
|
| 640 | + public function fetch() {} |
|
| 641 | 641 | |
| 642 | 642 | /** |
| 643 | 643 | * (PECL memcached >= 0.1.0)<br/> |
@@ -646,7 +646,7 @@ discard block |
||
| 646 | 646 | * @return array the results or <b>FALSE</b> on failure. |
| 647 | 647 | * Use <b>Memcached::getResultCode</b> if necessary. |
| 648 | 648 | */ |
| 649 | - public function fetchAll () {} |
|
| 649 | + public function fetchAll() {} |
|
| 650 | 650 | |
| 651 | 651 | /** |
| 652 | 652 | * (PECL memcached >= 0.1.0)<br/> |
@@ -664,7 +664,7 @@ discard block |
||
| 664 | 664 | * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
| 665 | 665 | * Use <b>Memcached::getResultCode</b> if necessary. |
| 666 | 666 | */ |
| 667 | - public function set ($key, $value, $expiration = 0, $udf_flags = 0) {} |
|
| 667 | + public function set($key, $value, $expiration = 0, $udf_flags = 0) {} |
|
| 668 | 668 | |
| 669 | 669 | /** |
| 670 | 670 | * (PECL memcached >= 0.1.0)<br/> |
@@ -685,7 +685,7 @@ discard block |
||
| 685 | 685 | * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
| 686 | 686 | * Use <b>Memcached::getResultCode</b> if necessary. |
| 687 | 687 | */ |
| 688 | - public function setByKey ($server_key, $key, $value, $expiration = 0, $udf_flags = 0) {} |
|
| 688 | + public function setByKey($server_key, $key, $value, $expiration = 0, $udf_flags = 0) {} |
|
| 689 | 689 | |
| 690 | 690 | /** |
| 691 | 691 | * (PECL memcached >= 2.0.0)<br/> |
@@ -700,7 +700,7 @@ discard block |
||
| 700 | 700 | * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
| 701 | 701 | * Use <b>Memcached::getResultCode</b> if necessary. |
| 702 | 702 | */ |
| 703 | - public function touch ($key, $expiration = 0) {} |
|
| 703 | + public function touch($key, $expiration = 0) {} |
|
| 704 | 704 | |
| 705 | 705 | /** |
| 706 | 706 | * (PECL memcached >= 2.0.0)<br/> |
@@ -718,7 +718,7 @@ discard block |
||
| 718 | 718 | * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
| 719 | 719 | * Use <b>Memcached::getResultCode</b> if necessary. |
| 720 | 720 | */ |
| 721 | - public function touchByKey ($server_key, $key, $expiration) {} |
|
| 721 | + public function touchByKey($server_key, $key, $expiration) {} |
|
| 722 | 722 | |
| 723 | 723 | /** |
| 724 | 724 | * (PECL memcached >= 0.1.0)<br/> |
@@ -733,7 +733,7 @@ discard block |
||
| 733 | 733 | * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
| 734 | 734 | * Use <b>Memcached::getResultCode</b> if necessary. |
| 735 | 735 | */ |
| 736 | - public function setMulti (array $items, $expiration = 0, $udf_flags = 0) {} |
|
| 736 | + public function setMulti(array $items, $expiration = 0, $udf_flags = 0) {} |
|
| 737 | 737 | |
| 738 | 738 | /** |
| 739 | 739 | * (PECL memcached >= 0.1.0)<br/> |
@@ -751,7 +751,7 @@ discard block |
||
| 751 | 751 | * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
| 752 | 752 | * Use <b>Memcached::getResultCode</b> if necessary. |
| 753 | 753 | */ |
| 754 | - public function setMultiByKey ($server_key, array $items, $expiration = 0, $udf_flags = 0) {} |
|
| 754 | + public function setMultiByKey($server_key, array $items, $expiration = 0, $udf_flags = 0) {} |
|
| 755 | 755 | |
| 756 | 756 | /** |
| 757 | 757 | * (PECL memcached >= 0.1.0)<br/> |
@@ -774,7 +774,7 @@ discard block |
||
| 774 | 774 | * <b>Memcached::RES_DATA_EXISTS</b> if the item you are trying |
| 775 | 775 | * to store has been modified since you last fetched it. |
| 776 | 776 | */ |
| 777 | - public function cas ($cas_token, $key, $value, $expiration = 0, $udf_flags = 0) {} |
|
| 777 | + public function cas($cas_token, $key, $value, $expiration = 0, $udf_flags = 0) {} |
|
| 778 | 778 | |
| 779 | 779 | /** |
| 780 | 780 | * (PECL memcached >= 0.1.0)<br/> |
@@ -800,7 +800,7 @@ discard block |
||
| 800 | 800 | * <b>Memcached::RES_DATA_EXISTS</b> if the item you are trying |
| 801 | 801 | * to store has been modified since you last fetched it. |
| 802 | 802 | */ |
| 803 | - public function casByKey ($cas_token, $server_key, $key, $value, $expiration = 0, $udf_flags = 0) {} |
|
| 803 | + public function casByKey($cas_token, $server_key, $key, $value, $expiration = 0, $udf_flags = 0) {} |
|
| 804 | 804 | |
| 805 | 805 | /** |
| 806 | 806 | * (PECL memcached >= 0.1.0)<br/> |
@@ -819,7 +819,7 @@ discard block |
||
| 819 | 819 | * The <b>Memcached::getResultCode</b> will return |
| 820 | 820 | * <b>Memcached::RES_NOTSTORED</b> if the key already exists. |
| 821 | 821 | */ |
| 822 | - public function add ($key, $value, $expiration = 0, $udf_flags = 0) {} |
|
| 822 | + public function add($key, $value, $expiration = 0, $udf_flags = 0) {} |
|
| 823 | 823 | |
| 824 | 824 | /** |
| 825 | 825 | * (PECL memcached >= 0.1.0)<br/> |
@@ -841,7 +841,7 @@ discard block |
||
| 841 | 841 | * The <b>Memcached::getResultCode</b> will return |
| 842 | 842 | * <b>Memcached::RES_NOTSTORED</b> if the key already exists. |
| 843 | 843 | */ |
| 844 | - public function addByKey ($server_key, $key, $value, $expiration = 0, $udf_flags = 0) {} |
|
| 844 | + public function addByKey($server_key, $key, $value, $expiration = 0, $udf_flags = 0) {} |
|
| 845 | 845 | |
| 846 | 846 | /** |
| 847 | 847 | * (PECL memcached >= 0.1.0)<br/> |
@@ -857,7 +857,7 @@ discard block |
||
| 857 | 857 | * The <b>Memcached::getResultCode</b> will return |
| 858 | 858 | * <b>Memcached::RES_NOTSTORED</b> if the key does not exist. |
| 859 | 859 | */ |
| 860 | - public function append ($key, $value) {} |
|
| 860 | + public function append($key, $value) {} |
|
| 861 | 861 | |
| 862 | 862 | /** |
| 863 | 863 | * (PECL memcached >= 0.1.0)<br/> |
@@ -876,7 +876,7 @@ discard block |
||
| 876 | 876 | * The <b>Memcached::getResultCode</b> will return |
| 877 | 877 | * <b>Memcached::RES_NOTSTORED</b> if the key does not exist. |
| 878 | 878 | */ |
| 879 | - public function appendByKey ($server_key, $key, $value) {} |
|
| 879 | + public function appendByKey($server_key, $key, $value) {} |
|
| 880 | 880 | |
| 881 | 881 | /** |
| 882 | 882 | * (PECL memcached >= 0.1.0)<br/> |
@@ -892,7 +892,7 @@ discard block |
||
| 892 | 892 | * The <b>Memcached::getResultCode</b> will return |
| 893 | 893 | * <b>Memcached::RES_NOTSTORED</b> if the key does not exist. |
| 894 | 894 | */ |
| 895 | - public function prepend ($key, $value) {} |
|
| 895 | + public function prepend($key, $value) {} |
|
| 896 | 896 | |
| 897 | 897 | /** |
| 898 | 898 | * (PECL memcached >= 0.1.0)<br/> |
@@ -911,7 +911,7 @@ discard block |
||
| 911 | 911 | * The <b>Memcached::getResultCode</b> will return |
| 912 | 912 | * <b>Memcached::RES_NOTSTORED</b> if the key does not exist. |
| 913 | 913 | */ |
| 914 | - public function prependByKey ($server_key, $key, $value) {} |
|
| 914 | + public function prependByKey($server_key, $key, $value) {} |
|
| 915 | 915 | |
| 916 | 916 | /** |
| 917 | 917 | * (PECL memcached >= 0.1.0)<br/> |
@@ -930,7 +930,7 @@ discard block |
||
| 930 | 930 | * The <b>Memcached::getResultCode</b> will return |
| 931 | 931 | * <b>Memcached::RES_NOTSTORED</b> if the key does not exist. |
| 932 | 932 | */ |
| 933 | - public function replace ($key, $value, $expiration = null, $udf_flags = 0) {} |
|
| 933 | + public function replace($key, $value, $expiration = null, $udf_flags = 0) {} |
|
| 934 | 934 | |
| 935 | 935 | /** |
| 936 | 936 | * (PECL memcached >= 0.1.0)<br/> |
@@ -952,7 +952,7 @@ discard block |
||
| 952 | 952 | * The <b>Memcached::getResultCode</b> will return |
| 953 | 953 | * <b>Memcached::RES_NOTSTORED</b> if the key does not exist. |
| 954 | 954 | */ |
| 955 | - public function replaceByKey ($server_key, $key, $value, $expiration = null, $udf_flags = 0) {} |
|
| 955 | + public function replaceByKey($server_key, $key, $value, $expiration = null, $udf_flags = 0) {} |
|
| 956 | 956 | |
| 957 | 957 | /** |
| 958 | 958 | * (PECL memcached >= 0.1.0)<br/> |
@@ -968,7 +968,7 @@ discard block |
||
| 968 | 968 | * The <b>Memcached::getResultCode</b> will return |
| 969 | 969 | * <b>Memcached::RES_NOTFOUND</b> if the key does not exist. |
| 970 | 970 | */ |
| 971 | - public function delete ($key, $time = 0) {} |
|
| 971 | + public function delete($key, $time = 0) {} |
|
| 972 | 972 | |
| 973 | 973 | /** |
| 974 | 974 | * (PECL memcached >= 2.0.0)<br/> |
@@ -984,7 +984,7 @@ discard block |
||
| 984 | 984 | * The <b>Memcached::getResultCode</b> will return |
| 985 | 985 | * <b>Memcached::RES_NOTFOUND</b> if the key does not exist. |
| 986 | 986 | */ |
| 987 | - public function deleteMulti (array $keys, $time = 0) {} |
|
| 987 | + public function deleteMulti(array $keys, $time = 0) {} |
|
| 988 | 988 | |
| 989 | 989 | /** |
| 990 | 990 | * (PECL memcached >= 0.1.0)<br/> |
@@ -1003,7 +1003,7 @@ discard block |
||
| 1003 | 1003 | * The <b>Memcached::getResultCode</b> will return |
| 1004 | 1004 | * <b>Memcached::RES_NOTFOUND</b> if the key does not exist. |
| 1005 | 1005 | */ |
| 1006 | - public function deleteByKey ($server_key, $key, $time = 0) {} |
|
| 1006 | + public function deleteByKey($server_key, $key, $time = 0) {} |
|
| 1007 | 1007 | |
| 1008 | 1008 | /** |
| 1009 | 1009 | * (PECL memcached >= 2.0.0)<br/> |
@@ -1022,7 +1022,7 @@ discard block |
||
| 1022 | 1022 | * The <b>Memcached::getResultCode</b> will return |
| 1023 | 1023 | * <b>Memcached::RES_NOTFOUND</b> if the key does not exist. |
| 1024 | 1024 | */ |
| 1025 | - public function deleteMultiByKey ($server_key, array $keys, $time = 0) {} |
|
| 1025 | + public function deleteMultiByKey($server_key, array $keys, $time = 0) {} |
|
| 1026 | 1026 | |
| 1027 | 1027 | /** |
| 1028 | 1028 | * (PECL memcached >= 0.1.0)<br/> |
@@ -1042,7 +1042,7 @@ discard block |
||
| 1042 | 1042 | * </p> |
| 1043 | 1043 | * @return int new item's value on success or <b>FALSE</b> on failure. |
| 1044 | 1044 | */ |
| 1045 | - public function increment ($key, $offset = 1, $initial_value = 0, $expiry = 0) {} |
|
| 1045 | + public function increment($key, $offset = 1, $initial_value = 0, $expiry = 0) {} |
|
| 1046 | 1046 | |
| 1047 | 1047 | /** |
| 1048 | 1048 | * (PECL memcached >= 0.1.0)<br/> |
@@ -1062,7 +1062,7 @@ discard block |
||
| 1062 | 1062 | * </p> |
| 1063 | 1063 | * @return int item's new value on success or <b>FALSE</b> on failure. |
| 1064 | 1064 | */ |
| 1065 | - public function decrement ($key, $offset = 1, $initial_value = 0, $expiry = 0) {} |
|
| 1065 | + public function decrement($key, $offset = 1, $initial_value = 0, $expiry = 0) {} |
|
| 1066 | 1066 | |
| 1067 | 1067 | /** |
| 1068 | 1068 | * (PECL memcached >= 2.0.0)<br/> |
@@ -1085,7 +1085,7 @@ discard block |
||
| 1085 | 1085 | * </p> |
| 1086 | 1086 | * @return int new item's value on success or <b>FALSE</b> on failure. |
| 1087 | 1087 | */ |
| 1088 | - public function incrementByKey ($server_key, $key, $offset = 1, $initial_value = 0, $expiry = 0) {} |
|
| 1088 | + public function incrementByKey($server_key, $key, $offset = 1, $initial_value = 0, $expiry = 0) {} |
|
| 1089 | 1089 | |
| 1090 | 1090 | /** |
| 1091 | 1091 | * (PECL memcached >= 2.0.0)<br/> |
@@ -1108,7 +1108,7 @@ discard block |
||
| 1108 | 1108 | * </p> |
| 1109 | 1109 | * @return int item's new value on success or <b>FALSE</b> on failure. |
| 1110 | 1110 | */ |
| 1111 | - public function decrementByKey ($server_key, $key, $offset = 1, $initial_value = 0, $expiry = 0) {} |
|
| 1111 | + public function decrementByKey($server_key, $key, $offset = 1, $initial_value = 0, $expiry = 0) {} |
|
| 1112 | 1112 | |
| 1113 | 1113 | /** |
| 1114 | 1114 | * (PECL memcached >= 0.1.0)<br/> |
@@ -1132,7 +1132,7 @@ discard block |
||
| 1132 | 1132 | * </p> |
| 1133 | 1133 | * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
| 1134 | 1134 | */ |
| 1135 | - public function addServer ($host, $port, $weight = 0) {} |
|
| 1135 | + public function addServer($host, $port, $weight = 0) {} |
|
| 1136 | 1136 | |
| 1137 | 1137 | /** |
| 1138 | 1138 | * (PECL memcached >= 0.1.1)<br/> |
@@ -1141,7 +1141,7 @@ discard block |
||
| 1141 | 1141 | * @param array $servers |
| 1142 | 1142 | * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
| 1143 | 1143 | */ |
| 1144 | - public function addServers (array $servers) {} |
|
| 1144 | + public function addServers(array $servers) {} |
|
| 1145 | 1145 | |
| 1146 | 1146 | /** |
| 1147 | 1147 | * (PECL memcached >= 0.1.0)<br/> |
@@ -1149,7 +1149,7 @@ discard block |
||
| 1149 | 1149 | * @link https://php.net/manual/en/memcached.getserverlist.php |
| 1150 | 1150 | * @return array The list of all servers in the server pool. |
| 1151 | 1151 | */ |
| 1152 | - public function getServerList () {} |
|
| 1152 | + public function getServerList() {} |
|
| 1153 | 1153 | |
| 1154 | 1154 | /** |
| 1155 | 1155 | * (PECL memcached >= 0.1.0)<br/> |
@@ -1163,7 +1163,7 @@ discard block |
||
| 1163 | 1163 | * on failure. |
| 1164 | 1164 | * Use <b>Memcached::getResultCode</b> if necessary. |
| 1165 | 1165 | */ |
| 1166 | - public function getServerByKey ($server_key) {} |
|
| 1166 | + public function getServerByKey($server_key) {} |
|
| 1167 | 1167 | |
| 1168 | 1168 | /** |
| 1169 | 1169 | * (PECL memcached >= 2.0.0)<br/> |
@@ -1171,7 +1171,7 @@ discard block |
||
| 1171 | 1171 | * @link https://php.net/manual/en/memcached.resetserverlist.php |
| 1172 | 1172 | * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
| 1173 | 1173 | */ |
| 1174 | - public function resetServerList () {} |
|
| 1174 | + public function resetServerList() {} |
|
| 1175 | 1175 | |
| 1176 | 1176 | /** |
| 1177 | 1177 | * (PECL memcached >= 2.0.0)<br/> |
@@ -1179,7 +1179,7 @@ discard block |
||
| 1179 | 1179 | * @link https://php.net/manual/en/memcached.quit.php |
| 1180 | 1180 | * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
| 1181 | 1181 | */ |
| 1182 | - public function quit () {} |
|
| 1182 | + public function quit() {} |
|
| 1183 | 1183 | |
| 1184 | 1184 | /** |
| 1185 | 1185 | * (PECL memcached >= 0.1.0)<br/> |
@@ -1188,7 +1188,7 @@ discard block |
||
| 1188 | 1188 | * @param string $type |
| 1189 | 1189 | * @return array Array of server statistics, one entry per server. |
| 1190 | 1190 | */ |
| 1191 | - public function getStats ($type = null) {} |
|
| 1191 | + public function getStats($type = null) {} |
|
| 1192 | 1192 | |
| 1193 | 1193 | /** |
| 1194 | 1194 | * (PECL memcached >= 0.1.5)<br/> |
@@ -1196,7 +1196,7 @@ discard block |
||
| 1196 | 1196 | * @link https://php.net/manual/en/memcached.getversion.php |
| 1197 | 1197 | * @return array Array of server versions, one entry per server. |
| 1198 | 1198 | */ |
| 1199 | - public function getVersion () {} |
|
| 1199 | + public function getVersion() {} |
|
| 1200 | 1200 | |
| 1201 | 1201 | /** |
| 1202 | 1202 | * (PECL memcached >= 2.0.0)<br/> |
@@ -1204,7 +1204,7 @@ discard block |
||
| 1204 | 1204 | * @link https://php.net/manual/en/memcached.getallkeys.php |
| 1205 | 1205 | * @return array the keys stored on all the servers on success or <b>FALSE</b> on failure. |
| 1206 | 1206 | */ |
| 1207 | - public function getAllKeys () {} |
|
| 1207 | + public function getAllKeys() {} |
|
| 1208 | 1208 | |
| 1209 | 1209 | /** |
| 1210 | 1210 | * (PECL memcached >= 0.1.0)<br/> |
@@ -1216,7 +1216,7 @@ discard block |
||
| 1216 | 1216 | * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
| 1217 | 1217 | * Use <b>Memcached::getResultCode</b> if necessary. |
| 1218 | 1218 | */ |
| 1219 | - public function flush ($delay = 0) {} |
|
| 1219 | + public function flush($delay = 0) {} |
|
| 1220 | 1220 | |
| 1221 | 1221 | /** |
| 1222 | 1222 | * (PECL memcached >= 0.1.0)<br/> |
@@ -1228,7 +1228,7 @@ discard block |
||
| 1228 | 1228 | * @return mixed the value of the requested option, or <b>FALSE</b> on |
| 1229 | 1229 | * error. |
| 1230 | 1230 | */ |
| 1231 | - public function getOption ($option) {} |
|
| 1231 | + public function getOption($option) {} |
|
| 1232 | 1232 | |
| 1233 | 1233 | /** |
| 1234 | 1234 | * (PECL memcached >= 0.1.0)<br/> |
@@ -1238,7 +1238,7 @@ discard block |
||
| 1238 | 1238 | * @param mixed $value |
| 1239 | 1239 | * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
| 1240 | 1240 | */ |
| 1241 | - public function setOption ($option, $value) {} |
|
| 1241 | + public function setOption($option, $value) {} |
|
| 1242 | 1242 | |
| 1243 | 1243 | /** |
| 1244 | 1244 | * (PECL memcached >= 2.0.0)<br/> |
@@ -1250,7 +1250,7 @@ discard block |
||
| 1250 | 1250 | * </p> |
| 1251 | 1251 | * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
| 1252 | 1252 | */ |
| 1253 | - public function setOptions (array $options) {} |
|
| 1253 | + public function setOptions(array $options) {} |
|
| 1254 | 1254 | |
| 1255 | 1255 | /** |
| 1256 | 1256 | * (PECL memcached >= 2.0.0)<br/> |
@@ -1264,7 +1264,7 @@ discard block |
||
| 1264 | 1264 | * </p> |
| 1265 | 1265 | * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
| 1266 | 1266 | */ |
| 1267 | - public function setSaslAuthData (string $username , string $password) {} |
|
| 1267 | + public function setSaslAuthData(string $username, string $password) {} |
|
| 1268 | 1268 | |
| 1269 | 1269 | /** |
| 1270 | 1270 | * (PECL memcached >= 2.0.0)<br/> |
@@ -1272,7 +1272,7 @@ discard block |
||
| 1272 | 1272 | * @link https://php.net/manual/en/memcached.ispersistent.php |
| 1273 | 1273 | * @return bool true if Memcache instance uses a persistent connection, false otherwise. |
| 1274 | 1274 | */ |
| 1275 | - public function isPersistent () {} |
|
| 1275 | + public function isPersistent() {} |
|
| 1276 | 1276 | |
| 1277 | 1277 | /** |
| 1278 | 1278 | * (PECL memcached >= 2.0.0)<br/> |
@@ -1280,28 +1280,28 @@ discard block |
||
| 1280 | 1280 | * @link https://php.net/manual/en/memcached.ispristine.php |
| 1281 | 1281 | * @return bool the true if instance is recently created, false otherwise. |
| 1282 | 1282 | */ |
| 1283 | - public function isPristine () {} |
|
| 1283 | + public function isPristine() {} |
|
| 1284 | 1284 | |
| 1285 | - public function flushBuffers () {} |
|
| 1285 | + public function flushBuffers() {} |
|
| 1286 | 1286 | |
| 1287 | - public function setEncodingKey ( $key ) {} |
|
| 1287 | + public function setEncodingKey($key) {} |
|
| 1288 | 1288 | |
| 1289 | - public function getLastDisconnectedServer () {} |
|
| 1289 | + public function getLastDisconnectedServer() {} |
|
| 1290 | 1290 | |
| 1291 | - public function getLastErrorErrno () {} |
|
| 1291 | + public function getLastErrorErrno() {} |
|
| 1292 | 1292 | |
| 1293 | - public function getLastErrorCode () {} |
|
| 1293 | + public function getLastErrorCode() {} |
|
| 1294 | 1294 | |
| 1295 | - public function getLastErrorMessage () {} |
|
| 1295 | + public function getLastErrorMessage() {} |
|
| 1296 | 1296 | |
| 1297 | - public function setBucket (array $host_map, array $forward_map, $replicas) {} |
|
| 1297 | + public function setBucket(array $host_map, array $forward_map, $replicas) {} |
|
| 1298 | 1298 | |
| 1299 | 1299 | } |
| 1300 | 1300 | |
| 1301 | 1301 | /** |
| 1302 | 1302 | * @link https://php.net/manual/en/class.memcachedexception.php |
| 1303 | 1303 | */ |
| 1304 | -class MemcachedException extends RuntimeException { |
|
| 1304 | +class MemcachedException extends RuntimeException { |
|
| 1305 | 1305 | |
| 1306 | 1306 | } |
| 1307 | 1307 | // End of memcached v.3.0.4 |
@@ -2,7 +2,7 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | // Start of memcache v.3.0.8 |
| 4 | 4 | |
| 5 | -class MemcachePool { |
|
| 5 | +class MemcachePool { |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * (PECL memcache >= 0.2.0)<br/> |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | * @param int $timeout [optional] <p>Value in seconds which will be used for connecting to the daemon. Think twice before changing the default value of 1 second - you can lose all the advantages of caching if your connection is too slow.</p> |
| 28 | 28 | * @return boolean <p>Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.</p> |
| 29 | 29 | */ |
| 30 | - public function connect ($host, $port, $timeout = 1) {} |
|
| 30 | + public function connect($host, $port, $timeout = 1) {} |
|
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | 33 | * (PECL memcache >= 2.0.0)<br/> |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | * </p> |
| 95 | 95 | * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
| 96 | 96 | */ |
| 97 | - public function addServer ($host, $port = 11211, $persistent = true, $weight = null, $timeout = 1, $retry_interval = 15, $status = true, callable $failure_callback = null, $timeoutms = null) {} |
|
| 97 | + public function addServer($host, $port = 11211, $persistent = true, $weight = null, $timeout = 1, $retry_interval = 15, $status = true, callable $failure_callback = null, $timeoutms = null) {} |
|
| 98 | 98 | |
| 99 | 99 | /** |
| 100 | 100 | * (PECL memcache >= 2.1.0)<br/> |
@@ -127,12 +127,12 @@ discard block |
||
| 127 | 127 | * </p> |
| 128 | 128 | * @return boolean <p>Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.</p> |
| 129 | 129 | */ |
| 130 | - public function setServerParams ($host, $port = 11211, $timeout = 1, $retry_interval = 15, $status = true, callable $failure_callback = null) {} |
|
| 130 | + public function setServerParams($host, $port = 11211, $timeout = 1, $retry_interval = 15, $status = true, callable $failure_callback = null) {} |
|
| 131 | 131 | |
| 132 | 132 | /** |
| 133 | 133 | * |
| 134 | 134 | */ |
| 135 | - public function setFailureCallback () {} |
|
| 135 | + public function setFailureCallback() {} |
|
| 136 | 136 | |
| 137 | 137 | /** |
| 138 | 138 | * (PECL memcache >= 2.1.0)<br/> |
@@ -142,12 +142,12 @@ discard block |
||
| 142 | 142 | * @param int $port Point to the port where memcached is listening for connections. |
| 143 | 143 | * @return int Returns a the servers status. 0 if server is failed, non-zero otherwise |
| 144 | 144 | */ |
| 145 | - public function getServerStatus ($host, $port = 11211) {} |
|
| 145 | + public function getServerStatus($host, $port = 11211) {} |
|
| 146 | 146 | |
| 147 | 147 | /** |
| 148 | 148 | * |
| 149 | 149 | */ |
| 150 | - public function findServer () {} |
|
| 150 | + public function findServer() {} |
|
| 151 | 151 | |
| 152 | 152 | /** |
| 153 | 153 | * (PECL memcache >= 0.2.0)<br/> |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | * @link https://php.net/manual/en/memcache.getversion.php |
| 156 | 156 | * @return string|boolean Returns a string of server version number or <b>FALSE</b> on failure. |
| 157 | 157 | */ |
| 158 | - public function getVersion () {} |
|
| 158 | + public function getVersion() {} |
|
| 159 | 159 | |
| 160 | 160 | /** |
| 161 | 161 | * (PECL memcache >= 2.0.0)<br/> |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | * You can also use Unix timestamp or a number of seconds starting from current time, but in the latter case the number of seconds may not exceed 2592000 (30 days).</p> |
| 173 | 173 | * @return boolean Returns <b>TRUE</b> on success or <b>FALSE</b> on failure. Returns <b>FALSE</b> if such key already exist. For the rest Memcache::add() behaves similarly to Memcache::set(). |
| 174 | 174 | */ |
| 175 | - public function add ($key , $var, $flag = null, $expire = null) {} |
|
| 175 | + public function add($key, $var, $flag = null, $expire = null) {} |
|
| 176 | 176 | |
| 177 | 177 | /** |
| 178 | 178 | * (PECL memcache >= 0.2.0)<br/> |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | * @param int $expire [optional] Expiration time of the item. If it's equal to zero, the item will never expire. You can also use Unix timestamp or a number of seconds starting from current time, but in the latter case the number of seconds may not exceed 2592000 (30 days). |
| 188 | 188 | * @return boolean Returns <b>TRUE</b> on success or <b>FALSE</b> on failure. |
| 189 | 189 | */ |
| 190 | - public function set ($key, $var, $flag = null, $expire = null) {} |
|
| 190 | + public function set($key, $var, $flag = null, $expire = null) {} |
|
| 191 | 191 | |
| 192 | 192 | /** |
| 193 | 193 | * (PECL memcache >= 0.2.0)<br/> |
@@ -199,16 +199,16 @@ discard block |
||
| 199 | 199 | * @param int $expire [optional] <p>Expiration time of the item. If it's equal to zero, the item will never expire. You can also use Unix timestamp or a number of seconds starting from current time, but in the latter case the number of seconds may not exceed 2592000 (30 days).</p> |
| 200 | 200 | * @return boolean Returns TRUE on success or FALSE on failure. |
| 201 | 201 | */ |
| 202 | - public function replace ($key, $var, $flag = null, $expire = null) {} |
|
| 202 | + public function replace($key, $var, $flag = null, $expire = null) {} |
|
| 203 | 203 | |
| 204 | - public function cas () {} |
|
| 204 | + public function cas() {} |
|
| 205 | 205 | |
| 206 | - public function append () {} |
|
| 206 | + public function append() {} |
|
| 207 | 207 | |
| 208 | 208 | /** |
| 209 | 209 | * @return string |
| 210 | 210 | */ |
| 211 | - public function prepend () {} |
|
| 211 | + public function prepend() {} |
|
| 212 | 212 | |
| 213 | 213 | /** |
| 214 | 214 | * (PECL memcache >= 0.2.0)<br/> |
@@ -230,7 +230,7 @@ discard block |
||
| 230 | 230 | * <b>key</b> is an empty {@link https://php.net/manual/en/language.types.array.php array}. |
| 231 | 231 | * </p> |
| 232 | 232 | */ |
| 233 | - public function get ($key, &$flags = null) {} |
|
| 233 | + public function get($key, &$flags = null) {} |
|
| 234 | 234 | |
| 235 | 235 | /** |
| 236 | 236 | * (PECL memcache >= 0.2.0)<br/> |
@@ -240,7 +240,7 @@ discard block |
||
| 240 | 240 | * @param $timeout int [optional] This deprecated parameter is not supported, and defaults to 0 seconds. Do not use this parameter. |
| 241 | 241 | * @return boolean Returns <b>TRUE</b> on success or <b>FALSE</b> on failure. |
| 242 | 242 | */ |
| 243 | - public function delete ($key, $timeout = 0 ) {} |
|
| 243 | + public function delete($key, $timeout = 0) {} |
|
| 244 | 244 | |
| 245 | 245 | /** |
| 246 | 246 | * (PECL memcache >= 0.2.0)<br/> |
@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | * </p> |
| 262 | 262 | * @return array|bool Returns an associative array of server statistics or <b>FALSE</b> on failure. |
| 263 | 263 | */ |
| 264 | - public function getStats ($type = null, $slabid = null, $limit = 100) {} |
|
| 264 | + public function getStats($type = null, $slabid = null, $limit = 100) {} |
|
| 265 | 265 | |
| 266 | 266 | /** |
| 267 | 267 | * (PECL memcache >= 2.0.0)<br/> |
@@ -279,7 +279,7 @@ discard block |
||
| 279 | 279 | * Returns a two-dimensional associative array of server statistics or <b>FALSE</b> |
| 280 | 280 | * on failure. |
| 281 | 281 | */ |
| 282 | - public function getExtendedStats ($type = null, $slabid = null, $limit = 100) {} |
|
| 282 | + public function getExtendedStats($type = null, $slabid = null, $limit = 100) {} |
|
| 283 | 283 | |
| 284 | 284 | /** |
| 285 | 285 | * (PECL memcache >= 2.0.0)<br/> |
@@ -289,7 +289,7 @@ discard block |
||
| 289 | 289 | * @param float $min_saving [optional] <p>Specifies the minimum amount of savings to actually store the value compressed. The supplied value must be between 0 and 1. Default value is 0.2 giving a minimum 20% compression savings.</p> |
| 290 | 290 | * @return boolean Returns <b>TRUE</b> on success or <b>FALSE</b> on failure. |
| 291 | 291 | */ |
| 292 | - public function setCompressThreshold ($thresold, $min_saving = 0.2) {} |
|
| 292 | + public function setCompressThreshold($thresold, $min_saving = 0.2) {} |
|
| 293 | 293 | /** |
| 294 | 294 | * (PECL memcache >= 0.2.0)<br/> |
| 295 | 295 | * Increment item's value |
@@ -298,7 +298,7 @@ discard block |
||
| 298 | 298 | * @param $value int [optional] increment the item by <b>value</b> |
| 299 | 299 | * @return int|boolean Returns new items value on success or <b>FALSE</b> on failure. |
| 300 | 300 | */ |
| 301 | - public function increment ($key, $value = 1) {} |
|
| 301 | + public function increment($key, $value = 1) {} |
|
| 302 | 302 | |
| 303 | 303 | /** |
| 304 | 304 | * (PECL memcache >= 0.2.0)<br/> |
@@ -308,7 +308,7 @@ discard block |
||
| 308 | 308 | * @param $value int Decrement the item by <b>value</b>. |
| 309 | 309 | * @return int|boolean Returns item's new value on success or <b>FALSE</b> on failure. |
| 310 | 310 | */ |
| 311 | - public function decrement ($key, $value = 1) {} |
|
| 311 | + public function decrement($key, $value = 1) {} |
|
| 312 | 312 | |
| 313 | 313 | /** |
| 314 | 314 | * (PECL memcache >= 0.4.0)<br/> |
@@ -316,7 +316,7 @@ discard block |
||
| 316 | 316 | * @link https://php.net/manual/en/memcache.close.php |
| 317 | 317 | * @return boolean Returns <b>TRUE</b> on success or <b>FALSE</b> on failure. |
| 318 | 318 | */ |
| 319 | - public function close () {} |
|
| 319 | + public function close() {} |
|
| 320 | 320 | |
| 321 | 321 | /** |
| 322 | 322 | * (PECL memcache >= 1.0.0)<br/> |
@@ -324,7 +324,7 @@ discard block |
||
| 324 | 324 | * @link https://php.net/manual/en/memcache.flush.php |
| 325 | 325 | * @return boolean Returns <b>TRUE</b> on success or <b>FALSE</b> on failure. |
| 326 | 326 | */ |
| 327 | - public function flush () {} |
|
| 327 | + public function flush() {} |
|
| 328 | 328 | |
| 329 | 329 | } |
| 330 | 330 | |
@@ -332,7 +332,7 @@ discard block |
||
| 332 | 332 | * Represents a connection to a set of memcache servers. |
| 333 | 333 | * @link https://php.net/manual/en/class.memcache.php |
| 334 | 334 | */ |
| 335 | -class Memcache extends MemcachePool { |
|
| 335 | +class Memcache extends MemcachePool { |
|
| 336 | 336 | |
| 337 | 337 | |
| 338 | 338 | /** |
@@ -356,7 +356,7 @@ discard block |
||
| 356 | 356 | * </p> |
| 357 | 357 | * @return mixed a Memcache object or <b>FALSE</b> on failure. |
| 358 | 358 | */ |
| 359 | - public function pconnect ($host, $port, $timeout = 1) {} |
|
| 359 | + public function pconnect($host, $port, $timeout = 1) {} |
|
| 360 | 360 | } |
| 361 | 361 | |
| 362 | 362 | // string $host [, int $port [, int $timeout ]] |
@@ -382,7 +382,7 @@ discard block |
||
| 382 | 382 | * </p> |
| 383 | 383 | * @return bool Returns <b>TRUE</b> on success or <b>FALSE</b> on failure. |
| 384 | 384 | */ |
| 385 | -function memcache_connect ($host, $port, $timeout = 1) {} |
|
| 385 | +function memcache_connect($host, $port, $timeout = 1) {} |
|
| 386 | 386 | |
| 387 | 387 | /** |
| 388 | 388 | * (PECL memcache >= 0.4.0) |
@@ -394,33 +394,33 @@ discard block |
||
| 394 | 394 | * @param int $timeout |
| 395 | 395 | * @return Memcache |
| 396 | 396 | */ |
| 397 | -function memcache_pconnect ($host, $port=null, $timeout=1) {} |
|
| 397 | +function memcache_pconnect($host, $port = null, $timeout = 1) {} |
|
| 398 | 398 | |
| 399 | -function memcache_add_server () {} |
|
| 399 | +function memcache_add_server() {} |
|
| 400 | 400 | |
| 401 | -function memcache_set_server_params () {} |
|
| 401 | +function memcache_set_server_params() {} |
|
| 402 | 402 | |
| 403 | -function memcache_set_failure_callback () {} |
|
| 403 | +function memcache_set_failure_callback() {} |
|
| 404 | 404 | |
| 405 | -function memcache_get_server_status () {} |
|
| 405 | +function memcache_get_server_status() {} |
|
| 406 | 406 | |
| 407 | -function memcache_get_version () {} |
|
| 407 | +function memcache_get_version() {} |
|
| 408 | 408 | |
| 409 | -function memcache_add () {} |
|
| 409 | +function memcache_add() {} |
|
| 410 | 410 | |
| 411 | -function memcache_set () {} |
|
| 411 | +function memcache_set() {} |
|
| 412 | 412 | |
| 413 | -function memcache_replace () {} |
|
| 413 | +function memcache_replace() {} |
|
| 414 | 414 | |
| 415 | -function memcache_cas () {} |
|
| 415 | +function memcache_cas() {} |
|
| 416 | 416 | |
| 417 | -function memcache_append () {} |
|
| 417 | +function memcache_append() {} |
|
| 418 | 418 | |
| 419 | -function memcache_prepend () {} |
|
| 419 | +function memcache_prepend() {} |
|
| 420 | 420 | |
| 421 | -function memcache_get () {} |
|
| 421 | +function memcache_get() {} |
|
| 422 | 422 | |
| 423 | -function memcache_delete () {} |
|
| 423 | +function memcache_delete() {} |
|
| 424 | 424 | |
| 425 | 425 | /** |
| 426 | 426 | * (PECL memcache >= 0.2.0)<br/> |
@@ -433,28 +433,28 @@ discard block |
||
| 433 | 433 | * @return bool <b>TRUE</b> if PHP was built with --enable-debug option, otherwise |
| 434 | 434 | * returns <b>FALSE</b>. |
| 435 | 435 | */ |
| 436 | -function memcache_debug ($on_off) {} |
|
| 436 | +function memcache_debug($on_off) {} |
|
| 437 | 437 | |
| 438 | -function memcache_get_stats () {} |
|
| 438 | +function memcache_get_stats() {} |
|
| 439 | 439 | |
| 440 | -function memcache_get_extended_stats () {} |
|
| 440 | +function memcache_get_extended_stats() {} |
|
| 441 | 441 | |
| 442 | -function memcache_set_compress_threshold () {} |
|
| 442 | +function memcache_set_compress_threshold() {} |
|
| 443 | 443 | |
| 444 | -function memcache_increment () {} |
|
| 444 | +function memcache_increment() {} |
|
| 445 | 445 | |
| 446 | -function memcache_decrement () {} |
|
| 446 | +function memcache_decrement() {} |
|
| 447 | 447 | |
| 448 | -function memcache_close () {} |
|
| 448 | +function memcache_close() {} |
|
| 449 | 449 | |
| 450 | -function memcache_flush () {} |
|
| 450 | +function memcache_flush() {} |
|
| 451 | 451 | |
| 452 | -define ('MEMCACHE_COMPRESSED', 2); |
|
| 453 | -define ('MEMCACHE_USER1', 65536); |
|
| 454 | -define ('MEMCACHE_USER2', 131072); |
|
| 455 | -define ('MEMCACHE_USER3', 262144); |
|
| 456 | -define ('MEMCACHE_USER4', 524288); |
|
| 457 | -define ('MEMCACHE_HAVE_SESSION', 1); |
|
| 452 | +define('MEMCACHE_COMPRESSED', 2); |
|
| 453 | +define('MEMCACHE_USER1', 65536); |
|
| 454 | +define('MEMCACHE_USER2', 131072); |
|
| 455 | +define('MEMCACHE_USER3', 262144); |
|
| 456 | +define('MEMCACHE_USER4', 524288); |
|
| 457 | +define('MEMCACHE_HAVE_SESSION', 1); |
|
| 458 | 458 | |
| 459 | 459 | // End of memcache v.3.0.8 |
| 460 | 460 | ?> |