You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* PhpRedis may make multiple calls to `SCAN` for every
2882
-
* time the user calls Redis::scan(), and will never return
2883
-
* an empty array of keys unless Redis returns the iterator
2884
-
* to zero (meaning the `SCAN` is complete).
2885
-
*
2886
-
*
2887
-
* OPT_SERIALIZER int One of the installed serializers, which can vary depending
2888
-
* on how PhpRedis was compiled. All of the supported serializers
2889
-
* are as follows:
2890
-
*
2891
-
* Redis::SERIALIZER_NONE
2892
-
* Redis::SERIALIZER_PHP
2893
-
* Redis::SERIALIZER_IGBINARY
2894
-
* Redis::SERIALIZER_MSGPACK
2895
-
* Redis::SERIALIZER_JSON
2896
-
*
2897
-
* Note: The PHP and JSON serializers are always available.
2898
-
*
2899
-
* OPT_PREFIX string A string PhpRedis will use to prefix every key we read or write.
2900
-
* To disable the prefix, you may pass an empty string or NULL.
2901
-
*
2902
-
* OPT_READ_TIMEOUT double How long PhpRedis will block for a response from Redis before
2903
-
* throwing a 'read error on connection' exception.
2904
-
*
2905
-
* OPT_TCP_KEEPALIVE bool Set or disable TCP_KEEPALIVE on the connection.
2906
-
*
2907
-
* OPT_COMPRESSION enum Set an automatic compression algorithm to use when reading/writing
2908
-
* data to Redis. All of the supported compressors are as follows:
2909
-
*
2910
-
* Redis::COMPRESSION_NONE
2911
-
* Redis::COMPRESSION_LZF
2912
-
* Redis::COMPRESSION_LZ4
2913
-
* Redis::COMPRESSION_ZSTD
2914
-
*
2915
-
* Note: Some of these may not be available depending on how Redis
2916
-
* was compiled.
2917
-
*
2918
-
* OPT_REPLY_LITERAL bool If set to true, PhpRedis will return the literal string Redis returns
2919
-
* for LINE replies (e.g. '+OK'), rather than `true`.
2920
-
*
2921
-
* OPT_COMPRESSION_LEVEL int Set a specific compression level if Redis is compressing data.
2922
-
*
2923
-
* OPT_NULL_MULTIBULK_AS_NULL bool Causes PhpRedis to return `NULL` rather than `false` for NULL MULTIBULK
2924
-
* RESP replies (i.e. `*-1`).
2925
-
*
2926
-
* OPT_BACKOFF_ALGORITHM enum The exponential backoff strategy to use.
2927
-
* OPT_BACKOFF_BASE int The minimum delay between retries when backing off.
2928
-
* OPT_BACKOFF_CAP int The maximum delay between replies when backing off.
2866
+
* | OPTION | TYPE | DESCRIPTION |
2867
+
* | --------------- | ---- | ----------- |
2868
+
* | OPT_MAX_RETRIES | int | The maximum number of times Redis will attempt to reconnect if it gets disconnected, before throwing an exception. |
2869
+
* | OPT_SCAN | enum | Redis::OPT_SCAN_RETRY, or Redis::OPT_SCAN_NORETRY. Whether PhpRedis should automatically SCAN again when zero keys but a nonzero iterator are returned. |
2870
+
* | OPT_SERIALIZER | enum | Set the automatic data serializer.<br>`Redis::SERIALIZER_NONE`<br>`Redis::SERIALIZER_PHP`<br>`Redis::SERIALIZER_IGBINARY`<br>`Redis::SERIALIZER_MSGPACK`, `Redis::SERIALIZER_JSON`|
2871
+
* | OPT_PREFIX | string | A string PhpRedis will use to prefix every key we read or write. |
2872
+
* | OPT_READ_TIMEOUT | float | How long PhpRedis will block for a response from Redis before throwing a 'read error on connection' exception. |
2873
+
* | OPT_TCP_KEEPALIVE | bool | Set or disable TCP_KEEPALIVE on the connection. |
2874
+
* | OPT_COMPRESSION | enum | Set the compression algorithm<br>`Redis::COMPRESSION_NONE`<br>`Redis::COMPRESSION_LZF`<br>`Redis::COMPRESSION_LZ4`<br> `Redis::COMPRESSION_ZSTD` |
2875
+
* | OPT_REPLY_LITERAL | bool | If set to true, PhpRedis will return the literal string Redis returns for LINE replies (e.g. '+OK'), rather than `true`. |
2876
+
* | OPT_COMPRESSION_LEVEL | int | Set a specific compression level if Redis is compressing data. |
2877
+
* | OPT_NULL_MULTIBULK_AS_NULL | bool | Causes PhpRedis to return `NULL` rather than `false` for NULL MULTIBULK replies |
2878
+
* | OPT_BACKOFF_ALGORITHM | enum | The exponential backoff strategy to use. |
2879
+
* | OPT_BACKOFF_BASE | int | The minimum delay between retries when backing off. |
2880
+
* | OPT_BACKOFF_CAP | int | The maximum delay between replies when backing off. |
2929
2881
*
2882
+
* @see Redis::getOption()
2930
2883
* @see Redis::__construct() for details about backoff strategies.
2931
2884
*
2932
2885
* @param int $option The option constant.
2933
2886
* @param mixed $value The option value.
2934
2887
*
2935
-
* @return bool True if the setting was updated, false if not.
2888
+
* @return bool true if the setting was updated, false if not.
0 commit comments