|
| 1 | +# Jedis 5 Breaking Changes |
| 2 | + |
| 3 | +- `StreamConsumersInfo` has been renamed to `StreamConsumerInfo`. |
| 4 | + |
| 5 | +- `bzpopmax(double timeout, byte[]... keys)` now returns `List<Object>` (instead of `List<byte[]>`). |
| 6 | + - This is a three element list where the last element is a `Double`. |
| 7 | + |
| 8 | +- `bzpopmin(double timeout, byte[]... keys)` now returns `List<Object>` (instead of `List<byte[]>`). |
| 9 | + - This is a three element list where the last element is a `Double`. |
| 10 | + |
| 11 | +- `getAgeSeconds()` in `AccessControlLogEntry` now returns `Double` instead of `String`. |
| 12 | + |
| 13 | +- `graphSlowlog(String graphName)` now returns `List<List<Object>>` (instead of `List<List<String>>`). |
| 14 | + |
| 15 | +- `List<Object> getUnflushedObjectMultiBulkReply()` method has been removed from `Connection`. |
| 16 | + - `Object getUnflushedObject()` method has been added instead. |
| 17 | + |
| 18 | +- `STREAM_INFO_FULL` in BuilderFactory has been renamed to `STREAM_FULL_INFO`. |
| 19 | +- `STREAM_CONSUMERS_INFO_LIST` in BuilderFactory has been renamed to `STREAM_CONSUMER_INFO_LIST`. |
| 20 | +- `STREAM_AUTO_CLAIM_ID_RESPONSE` in BuilderFactory has been renamed to `STREAM_AUTO_CLAIM_JUSTID_RESPONSE`. |
| 21 | + |
| 22 | +- Following BuilderFactory implementations have been removed: |
| 23 | + - `BYTE_ARRAY` (use `BINARY`) |
| 24 | + - `BYTE_ARRAY_LIST` (use `BINARY_LIST`) |
| 25 | + |
| 26 | +<!--- Deprecated in Jedis 4 ---> |
| 27 | + |
| 28 | +- `quit()` method has been removed from `Connection` and `ServerCommands` interface and implementations. |
| 29 | + |
| 30 | +- `select(int index)` method has been removed from `Connection`. |
| 31 | + |
| 32 | +- `updatePassword(String password)` method has been removed from `JedisClientConfig` and implementations. |
| 33 | + |
| 34 | +- `setPassword(String password)` method has been removed from `ConnectionFactory`. |
| 35 | + |
| 36 | +- `setPassword(String password)` method has been removed from `JedisFactory`. |
| 37 | + |
| 38 | +- `get()` option has been removed from `SetParams`. Following methods have been added in Jedis/UnifiedJedis for convenience: |
| 39 | + - `setGet(String key, String value)` method has been added in `` interface. |
| 40 | + - `setGet(byte[] key, byte[] value)` method has been added in `` interface. |
| 41 | + |
| 42 | +- `xpending(String key, String groupName, StreamEntryID start, StreamEntryID end, int count, String consumerName)` method has been removed from everywhere. |
| 43 | + - Use `xpending(java.lang.String, java.lang.String, redis.clients.jedis.params.XPendingParams)` instead. |
| 44 | + |
| 45 | +- `xpending(byte[] key, byte[] groupName, byte[] start, byte[] end, int count, byte[] consumerName)` method has been removed from everywhere. |
| 46 | + - Use `xpending(byte[], byte[], redis.clients.jedis.params.XPendingParams)` instead. |
| 47 | + |
| 48 | +- `topkCount(String key, String... items)` method has been removed from everywhere. |
| 49 | + |
| 50 | +- Following methods have been removed: |
| 51 | + - `strAlgoLCSStrings(String strA, String strB, StrAlgoLCSParams params)` |
| 52 | + - `strAlgoLCSStrings(byte[] strA, byte[] strB, StrAlgoLCSParams params)` |
| 53 | + - `strAlgoLCSKeys(String keyA, String keyB, StrAlgoLCSParams params)` |
| 54 | + - `strAlgoLCSKeys(byte[] keyA, byte[] keyB, StrAlgoLCSParams params)` |
| 55 | + |
| 56 | +- `StrAlgoLCSParams` has been removed. |
| 57 | + |
| 58 | +- Following methods have been removed from all Pipeline classes: |
| 59 | + - `ftCursorRead(String indexName, long cursorId, int count)` |
| 60 | + - `ftCursorDel(String indexName, long cursorId)` |
| 61 | + - `ftDropIndex(String indexName)` |
| 62 | + - `ftDropIndexDD(String indexName)` |
| 63 | + - `ftAliasAdd(String aliasName, String indexName)` |
| 64 | + - `ftAliasUpdate(String aliasName, String indexName)` |
| 65 | + - `ftAliasDel(String aliasName)` |
| 66 | + |
| 67 | +- `addObjects(int[] ints)` method has been removed from `CommandArguments`. |
| 68 | + |
| 69 | +- `getArgsString()` and `serializeRedisArgs(List<byte[]> redisArgs)` methods have been removed from `AggregationBuilder`. |
| 70 | + |
| 71 | +- `totalResults` variable in `AggregationResult` has been made private. Use `getTotalResults()` method instead. |
| 72 | + |
| 73 | +- `retentionTime(long retentionTime)` method in `TSAlterParams` has been removed. Use `retention(long)` method instead. |
| 74 | + |
| 75 | +- `JedisSentineled(String masterName, Set<HostAndPort> sentinels, JedisClientConfig masterClientConfig, JedisClientConfig sentinelClientConfig)` and |
| 76 | +`JedisSentineled(String masterName, Set<HostAndPort> sentinels, GenericObjectPoolConfig<Connection> poolConfig, JedisClientConfig masterClientConfig, JedisClientConfig sentinelClientConfig)` |
| 77 | +constructors have been removed. |
| 78 | + |
| 79 | +- `JedisClusterInfoCache(JedisClientConfig clientConfig)` and `JedisClusterInfoCache(JedisClientConfig clientConfig, GenericObjectPoolConfig<Connection> poolConfig)` |
| 80 | +constructors have been removed. |
0 commit comments