Repository navigation
Conversation
…efaults Jedis 8.0 removed JedisPooled, JedisSentineled and the public UnifiedJedis constructors, so the Java examples in redis-connections no longer compiled on the current Jedis release. Switch them to RedisClient (7.2+), add pool sizing via ConnectionPoolConfig, and fix the client-side caching example (RedisClient builder with cacheConfig, csc.CacheConfig and RedisProtocol imports). Add a section on RESP3 being the default in current client majors (redis-py 8, node-redis 6, ioredis 6, Jedis 8, StackExchange.Redis 3), with how to pin RESP2 in each. Update the Jedis client-class table, migration path and version gotchas in redis-search's java-jedis.md to match Jedis 8. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nces
Jedis 8.0 removed the public UnifiedJedis constructors and JedisPooled.
Swap `new UnifiedJedis("redis://...")` for `RedisClient.create(...)` in the
redis-search reference examples, use RedisClusterClient for the
redis-clustering hash-tag example, and move the redis-security TLS example
to RedisClient.builder() with SslOptions (the ssl()/sslSocketFactory()
setters are deprecated in Jedis 8, which also enforces hostname
verification by default).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
RedisClient only exists from Jedis 7.2, and JedisPooled only up to 7.x, so a single recommended class is wrong for part of the installed base. Tell agents to read the Jedis version from pom.xml / build.gradle first, add a version table (8.0+, 7.2-7.x, 5.0-7.1) covering pooled, cluster and protocol defaults, and keep working JedisPooled code on 7.x unless the task is the 8.0 upgrade. Declare the Jedis 7.2+ baseline of the Java examples in the compatibility frontmatter of redis-connections and redis-search. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
uglide
reviewed
Oct 28, 2026
| Recent major releases switched the default wire protocol from RESP2 to RESP3. Reply shapes for some commands differ between the two (maps instead of flat lists, typed numbers instead of strings), so code written against RESP2 replies can break on upgrade without any change to the Redis server. | ||
|
|
||
| | Client | RESP3 default from | Keep RESP2 | | ||
| |---|---|---| |
There was a problem hiding this comment.
Lettuce supports RESP3 by default from 6.0 too
| name: redis-search | ||
| description: Redis Search guidance covering FT.CREATE schema design, field type selection (TEXT, TAG, NUMERIC, GEO, GEOSHAPE, VECTOR, JSON path), DIALECT 2 query syntax, FT.SEARCH / FT.AGGREGATE / FT.HYBRID command selection, vector similarity with HNSW or FLAT, hybrid retrieval combining lexical and vector ranking, RAG pipelines, zero-downtime index updates via aliases, and debugging with FT.PROFILE and FT.EXPLAIN. Use when defining a search index on Hash or JSON documents, writing FT.SEARCH queries with filters, sorting, aggregation, or vector KNN, tuning HNSW parameters, building a RAG retrieval pipeline, or troubleshooting slow or empty search results. | ||
| license: MIT | ||
| compatibility: Java examples use the Jedis 7.2+ RedisClient API; check the installed Jedis version first (see references/clients/java-jedis.md for older releases). |
There was a problem hiding this comment.
Ideally, we should migrate this skill to use Lettuce 7.9.0 for Java examples instead of Jedis, because Jedis is a legacy client library and Lettuce provides far superior performance and compatibility.
Reference: https://redis.github.io/lettuce/user-guide/redis-search/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Jedis 8.0 (released 2026-08-10) removed
JedisPooled,JedisSentineledand the publicUnifiedJedisconstructors (release notes, v7 → v8 migration guide). Every Java example in this repo usednew UnifiedJedis(...)ornew JedisPooled(...), so an agent following the skills wrote code that does not compile on the current Jedis release.Separately, several client majors released this year switched to RESP3 by default, which changes reply shapes for code that parses raw replies. The skills did not mention this.
Commit 1:
redis-connectionsandjava-jedis.mdredis-connections: Jedis examples moved toRedisClient(7.2+). Added pool sizing viaConnectionPoolConfig. Added Lettuce imports to disambiguate itsRedisClientfrom Jedis's.Fixed the client-side caching example:
RedisClient.builder()...cacheConfig(...), plus the correctredis.clients.jedis.csc.CacheConfigimport (the oldredis.clients.jedis.CacheConfigimport does not exist) and the missingRedisProtocolimport.New SKILL.md section 6, "Expect RESP3 by default on current clients": the version where each client switched and how to pin RESP2.
go-redis and Lettuce are left out because their docs do not state a default; the section tells agents to set the protocol explicitly for those.
Description extended so the skill also triggers on client upgrades to those versions (625 of 1024 characters).
redis-search/references/clients/java-jedis.md:JedisPooledis removed,UnifiedJedisis no longer constructible, andRedisClusterClientreplaces the deprecatedJedisCluster.JedisPooledcode: keep it on 7.x, replace it when upgrading to 8.0. Commit 3 adds the version detection behind this.((UnifiedJedis) jedis)cast onsendCommand;RedisClientinherits it.Commit 2: same fix across the other skills
This commit is mechanical and can be dropped or split out if reviewers prefer.
redis-searchreferences:try (UnifiedJedis jedis = new UnifiedJedis("redis://localhost:6379"))becomestry (RedisClient jedis = RedisClient.create("redis://localhost:6379")).redis-clustering/references/hash-tags.md: usesRedisClusterClient, since the example is about cluster slots.redis-security/references/auth.md: the TLS example moved toRedisClient.builder()withSslOptions. Jedis 8 deprecates thessl()andsslSocketFactory()setters and enforces hostname verification by default.Commit 3: detect the installed Jedis version first
RedisClientexists only from Jedis 7.2, andJedisPooledonly up to 7.x. No single recommended class is right for every user.java-jedis.md§2 now tells the agent to read the Jedis version frompom.xml,build.gradleor the lockfile before writing code. A version table gives the pooled client, the cluster client and the protocol default for each range:RedisClientRedisClientorJedisPooledJedisPooledNew rules:
RedisClient.JedisPooledcode on 7.x.redis-connectionsgets the same check: one line inSKILL.mdand a short version table inreferences/pooling.md.Both skills declare the Jedis 7.2+ baseline of their Java examples in the agentskills.io
compatibilityfrontmatter field. No other skill in this repo uses that field yet, so reviewers may want to decide whether it becomes a convention.The pre-8.0 RESP2 default comes from the 8.0 changelog entry "Switch to RESP3 as default protocol version" (#4468).
Validation
mastersource:RedisClient extends UnifiedJedis,RedisClusterClient.create(HostAndPort), and the builder'spoolConfig,cacheConfigandclientConfig. Also checkedSslOptions.Builder.sslVerifyMode,csc.CacheConfigandRedisProtocol.docs/v5-to-v6.md, ioredis v6.0.0, the Jedis v7 → v8 guide, and StackExchange.RedisResp3.html.npm run validate:pluginsandnpm run validate:eval-baselinespass.npm run validate:skill-structurewith skill-validator v1.5.6 reports 0 errors. Its 2 warnings were not introduced here:redis-searchdeep nesting and total reference size.Evals
Not run. Commits 1 and 2 correct API usage against a client release. They do not change what the skills recommend: pool or multiplex, client-side caching, auth and TLS all stay the same. Commit 3 is a behaviour change: the agent now checks the installed Jedis version before choosing an API. Under CONTRIBUTING.md, that change needs evals before merge. The existing
redis-connectionssuite does not exercise Jedis constructors. Two evals would cover the version detection: apom.xmlpinned to Jedis 6.x (expectJedisPooled, no dependency bump) and one pinned to 8.x (expectRedisClient). A further eval could check that the model writesRedisClientrather thanJedisPooledwhen asked for a pooled Jedis client.🤖 Generated with Claude Code