Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Redis Knowledge Patch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nevaberry-redis-knowledge-patch)
---
name: redis-knowledge-patch
description: Redis
version: "8.8.2"
license: MIT
metadata:
author: Nevaberry
---
# Redis Knowledge Patch
Load this skill for Redis upgrades, permissions, data commands, Search, JSON,
time series, streams, cluster operations, or diagnostics.
Use the topic references for complete guidance and release-specific fixes.
| Reference | Topics |
| --- | --- |
| [Security, upgrades, and access control](references/security-and-upgrades.md) | Startup, upgrade paths, security fixes, ACLs, TLS authentication, log privacy |
| [Data structures and commands](references/data-structures-and-commands.md) | Strings, counters, arrays, compact hashes, lists, sets, bitmaps, streams, vector sets |
| [Search, JSON, and time series](references/search-json-and-timeseries.md) | Schema validation, scoring, timeouts, vector indexes, hybrid queries, JSON arrays, time-series reads |
| [Operations, cluster, and modules](references/operations-cluster-and-modules.md) | Slot migration, metrics, memory, backup, failover, notifications, module APIs |
## Security and compatibility checks
### Security upgrade targets
Upgrade Redis 8.8 deployments to 8.8.2 for fixes to ACL key permissions,
TLS client certificate authentication, and RDB loading, including CVE-2026-62356.
The ACL fix covers `SORT`, `GEORADIUS`, `GEORADIUSBYMEMBER`, `XREAD`, and `XREADGROUP`.
Upgrade Redis 8.10 deployments to 8.10.1 for fixes to a TLS certificate
authentication bypass, potential remote code execution during RDB loading,
and other memory-safety issues, including CVE-2026-62356 in Count-Min Sketch loading.
### Expanded permissions
Redis 8 includes Search, JSON, time-series, and probabilistic commands in
existing ACL categories: `+@read` now grants `FT.SEARCH`, while
`+@all -@write` excludes `JSON.SET`.
Custom rules can target `@search`, `@json`, `@timeseries`, `@bloom`, `@cuckoo`,
`@cms`, `@topk`, and `@tdigest`.
To create, modify, or read a Search index, a user's ACL key patterns must cover
every key matching the index prefixes.
`TS.MGET`, `TS.MRANGE`, and `TS.MREVRANGE` fail if any matching key is unreadable.
`TS.QUERYINDEX` can read matching metadata without sample read permission.
### Search schemas and defaults
Redis 8.10.0 makes `FT.CREATE` and `FT.ALTER` reject empty field names.
Use nonempty names in index schemas.
Redis 8.0.1 restores `RETURN` as the `search-on-timeout` default, so timed-out
queries may return partial results.
Redis 8.2.4 and 8.4.1 document `search-default-scorer` for text and tag queries,
with `BM25STD` as the new default.
### Stream persistence caveat
`XADD` supports `IDMP` and `IDMPAUTO` for at-most-once production.
Defaults are set by `stream-idmp-duration` and `stream-idmp-maxsize`.
Avoid these options in 8.6.0 with `appendonly yes` and `aof-use-rdb-preamble no`.
Redis 8.6.2 fixes restoration of idempotency state after AOF rewrite and
expiration of that state after RDB load.
### Migration caveat
`CLUSTER MIGRATION` provides atomic slot migration.
During migration in 8.4.0, `FT.SEARCH`, `FT.AGGREGATE`, `FT.CURSOR`, `FT.HYBRID`,
`TS.MGET`, `TS.MRANGE`, `TS.MREVRANGE`, and `TS.QUERYINDEX` may return partial
or duplicate results.
## Startup and authentication
Start Redis 8 with all integrated components and their configuration settings:
```bash
redis-server redis-full.conf
```
Upgrades by replication or persistence are supported from earlier Redis with
or without standalone Search, JSON, Time Series, and Bloom modules, and from
Redis Stack 7.2 or 7.4.
`tls-auth-clients-user` enables automatic client authentication from TLS
certificates. Monitor `acl_access_denied_tls_cert` for failed certificate-based
authentication attempts. Redis servers can also authenticate one another
using TLS peer certificates.
## Atomic writes and bounded counters
- `DIGEST` retrieves a string value's digest; conditional `SET` variants provide
atomic compare-and-set, and `DELEX` provides atomic compare-and-delete.
- `MSETEX` sets multiple string keys with expiration in one atomic operation.
Redis 8.4.4 fixes a key-pattern ACL bypass in this command.
- `INCREX` combines integer or floating-point increments, bounds, and expiration
in one command for rate-limit counters.
## Collection operations
Arrays store and access values by index.
Compact hashes share field names across keys with the same schema; use
`HIMPORT` to bulk-insert them.
`LMOVEM` moves multiple elements between lists; `BLMOVEM` is the blocking variant.
`SUNIONCARD` and `SDIFFCARD` directly return set union and difference counts.
`ZUNION`, `ZINTER`, `ZUNIONSTORE`, and `ZINTERSTORE` accept `AGGREGATE COUNT`
to score each result by how many input sets contain it.
For example, `ZUNION 2 first second AGGREGATE COUNT` scores shared members 2
and members found in one input 1.
`BITOP` supports `DIFF`, `DIFF1`, `ANDOR`, and `ONE`.
`BITOP DIFF out first second` stores bits set in `first` and clear in `second`.
## Stream reads, redelivery, and deletion
`XREADGROUP` can return idle pending entries and new entries in one read.
`XREADGROUP GROUP workers reader CLAIM 60000 STREAMS jobs >` can reclaim
entries idle for at least 60 seconds.
`XNACK` lets a consumer explicitly release a pending message for redelivery.
`XREAD` and `XREADGROUP` accept `MAXCOUNT` to cap the total entry count and
`MAXSIZE` to cap total size across the requested streams in a reply.
Redis 8.2 adds `XDELEX` and `XACKDEL` and extends trimming in `XADD` and `XTRIM`
with reference strategies such as `DELREF` and `ACKED`.
Redis 8.2.7 and 8.4.4 fix approximate trimming (`~`) with either strategy and
fix `XDELEX` with `ACKED` after `XGROUP DESTROY`.
## Vector sets and Search
For an existing vector-set element, use
`VSIM vectors ELE item WITHATTRIBS EPSILON 0.2`.
`WITHATTRIBS` returns each element's JSON attribute; `EPSILON` caps distance.
`SVS-VAMANA` provides a vector index type with compression.
See the Search reference for the release-specific LeanVec, LVQ,
`BUILD_INTEL_SVS_OPT`, and architecture changes.
`FT.HYBRID` combines results with RRF or LINEAR.
Redis 8.4.1 requires passing vector blobs as query parameters.
In 8.4.0 the default reply contains `key_id` and `score`; post-`COMBINE`
filtering, `WITHCURSOR`, `EXPLAINSCORE`, `SHARD_K_RATIO`, and `YIELD_DISTANCE_AS`
are unavailable.
The `KNN` clause of `FT.HYBRID` can request fewer candidates from each shard,
reducing the candidates returned for merging.
`FT.PROFILE` accepts the `HYBRID` query type to profile an `FT.HYBRID` query.
`FT.AGGREGATE` supports `WITHCOUNT`.
`FT.ALIASLIST` lists aliases for a Search index.
Search supports stemming for Malay and Tagalog text.
## JSON and time-series queries
Use `FPHA` on `JSON.SET` to specify the floating-point type for a homogeneous array.
Time series accept samples such as `TS.ADD sensor:temp * NaN`.
`COUNTNAN` counts NaN samples; `COUNTALL` includes them in the total.
`TS.RANGE`, `TS.REVRANGE`, `TS.MRANGE`, and `TS.MREVRANGE` can compute multiple
aggregations in one request.
`TS.NRANGE` and `TS.NREVRANGE` query a range across multiple time series and
group returned samples by timestamp.
`TS.READ` supports time-series reads that can optionally block.
`TS.QUERYLABELS` lists label names and their values.
Pass `EXCLUDEEMPTY` to `TS.MRANGE` or `TS.MREVRANGE` to omit series with no
samples in the query result.
## Operations and diagnostics
`CLUSTER SLOT-STATS` reports per-slot key count, CPU time, and network I/O.
`cluster-slot-stats-enabled` selects which resource statistics to collect.
`INFO KEYSIZES` reports key-size distributions; `key-memory-histograms`
provides memory consumption per data type.
`HOTKEYS` detects and reports hot keys.
Run `HOTKEYS HELP` for command syntax starting in 8.6.1.
Memory tracking can be enabled at runtime in non-clustered mode.
`volatile-lrm` evicts keys with expiration based on least recent modification;
`allkeys-lrm` applies to all keys.
For example, `CONFIG SET maxmemory-policy allkeys-lrm` selects that eviction policy.
`BACKUP` provides node-side backup and restore based on multi-part AOF.
Redis 8.2.8, 8.4.5, and 8.6.5 replicate `CF.LOADCHUNK` data chunks so failover
preserves loaded Cuckoo filter data.
## Notifications and module APIs
`OVERWRITTEN` signals complete replacement of a key's value; `TYPE_CHANGED`
signals a change in its data type.
Subkey notifications let subscribers observe individual hash-field changes.
Modules can access server configuration through `RedisModule_Get*` and
`RedisModule_Set*`. `RM_UnsubscribeFromKeyspaceEvents` unregisters specific
keyspace notifications.