Home Blog Redis 80 new data structures and vector Database Deep Dives
Redis 80 new data structures and vector February 8, 2026 9 min read

Database Deep Dives

Redis 80 new data structures and vector Enterprise Guide 2026 SCALE D2C D2C Technology Redis 80 new data structures and vector Enterprise Guide 2026 SCALE D2C D2C Technology

Redis 8.0, released in 2025, is the first major version under Redis's new licensing model and brings significant additions: new probabilistic data structures, a native vector search engine, improved JSON capabilities, and performance enhancements across the core data structures. This guide covers every new feature and how to put them to work in production.

Redis 8.0: Context and Licensing

Redis 8.0 is notable not just for its technical additions but for the licensing context in which it arrives. In 2024, Redis Ltd. changed the Redis license from BSD to the Redis Source Available License (RSALv2) and SSPL, prompting the Linux Foundation to fork the project as Valkey. Redis 8.0 is released under the RSALv2 license β€” free for most use cases, with restrictions only on managed service providers offering Redis as a service without contributing back. For enterprise users running Redis themselves or via Redis Cloud, the practical usage rights are unchanged from Redis 6/7.

1M+
Redis instances in production globally
2Γ—
Throughput improvement for certain workloads in Redis 8.0
Native
Vector search now built into Redis core (no module required)

Redis 8.0 integrates vector search capabilities natively into the core engine β€” previously available only via the RediSearch module (now Redis Stack). This allows storing and searching high-dimensional vector embeddings alongside standard Redis data structures, enabling AI-powered semantic search, recommendation systems, and RAG pipelines without a separate vector database.

# Create a vector index
FT.CREATE product_idx ON HASH PREFIX 1 product:
  SCHEMA
    name TEXT WEIGHT 5.0
    category TAG
    price NUMERIC
    embedding VECTOR HNSW 6 TYPE FLOAT32 DIM 1536 DISTANCE_METRIC COSINE

# Add a product with its embedding
HSET product:1 name "Wireless Headphones" category "Electronics" price 99.99   embedding [... 1536 float32 values ...]

# Vector similarity search
FT.SEARCH product_idx "*=>[KNN 10 @embedding $vec AS score]"   PARAMS 2 vec [... query vector ...]   RETURN 3 name price score SORTBY score
πŸ’‘ HNSW vs FLAT Indexing

Redis vector search supports two index types: FLAT (brute-force exact search β€” accurate but O(n) at query time) and HNSW (Hierarchical Navigable Small World β€” approximate nearest neighbour with sub-linear query time). Use FLAT for small datasets (under 1M vectors) where accuracy is critical. Use HNSW for large datasets where query latency matters more than perfect recall. HNSW typically achieves 95%+ recall with 10-100Γ— faster queries than FLAT at scale.

New Data Structures in Redis 8.0

🎲
Probabilistic Counters (t-digest)
t-digest data structure for computing approximate quantiles (median, p95, p99) over streaming data with O(1) memory per percentile. Ideal for latency percentile tracking, response time SLA monitoring, and real-time analytics where exact computation would require storing all data points.
πŸ”’
Count-Min Sketch
Probabilistic frequency counter that estimates how many times elements appear in a stream, using fixed memory regardless of stream cardinality. Useful for trending item detection, frequency-based rate limiting, and heavy hitter identification in high-velocity event streams.
🌸
Top-K
Maintains an approximate list of the K most frequent items in a data stream with sub-linear memory. Native implementation in Redis 8.0 vs the previous module dependency. Enables real-time trending products, popular search terms, and hot key detection.
πŸ”
Cuckoo Filters
Improved alternative to Bloom filters β€” supports item deletion, has better lookup performance, and provides better space efficiency at lower false positive rates. Useful for deduplication, caching with deletion support, and membership testing at scale.

JSON Improvements

Redis 8.0 enhances the JSON data type (now native, previously RedisJSON module) with several improvements:

FeatureDescriptionUse Case
JSONPath improvementsFull JSONPath spec compliance; recursive descent, filter expressionsComplex nested document queries
JSON.MERGEMerge a JSON value into an existing document at a pathPartial document updates without full read-modify-write
Indexing JSON with FT.CREATESearch and index JSON documents natively (no conversion to Hash needed)Full-text and numeric search on JSON data
JSON + Vector SearchStore vectors within JSON documents and search them with FT.SEARCHAI embeddings stored alongside structured document data

Performance Improvements

Redis 8.0 includes several performance improvements in the core engine:

  • I/O threading improvements: Better utilisation of I/O threads for network read/write operations, improving throughput on multi-core systems for high-connection-count workloads.
  • Improved LOLWUT art: (The important things.) More practically: the RDB persistence format has been optimised for faster save/restore cycles, reducing the impact of periodic RDB snapshots on latency.
  • SINTERCARD command performance: The set intersection cardinality command has been significantly optimised, making it practical for large set operations.
  • Cluster bus optimisations: Reduced gossip protocol overhead in large Redis Cluster deployments, improving cluster scalability.

Redis 8.0 vs Valkey: What Should You Use?

Choose Redis 8.0 if...
  • You want Redis Cloud (managed Redis from Redis Ltd.)
  • You use Redis Stack features (Search, JSON, Vector, TimeSeries)
  • Enterprise support from Redis Ltd. is a requirement
  • Your usage does not trigger RSALv2 restrictions
  • Vendor-supported modules and certified integrations matter
Choose Valkey if...
  • BSD/OSI-approved license is required by legal or procurement policy
  • You manage Redis at scale and prefer Linux Foundation governance
  • AWS, GCP, Azure managed offerings now default to Valkey
  • Your use case is core Redis data structures without module features
  • Long-term open source sustainability is a priority

Upgrading to Redis 8.0

01
Review Licensing
Confirm your use case is compatible with RSALv2. If you are a cloud provider offering Redis as a managed service commercially, contact Redis Ltd. for licensing. All other enterprise usage is covered under RSALv2 at no charge.
02
Remove Module Dependencies
If you used RediSearch, RedisJSON, RedisBloom, or RedisTimeSeries as separate modules, these are now built into Redis 8.0 core. Remove the module load directives from your redis.conf and test that functionality works without the module.
03
Test RDB Compatibility
Redis 8.0 RDB format may not be backwards compatible with Redis 6.x. For rolling upgrades, use replica promotion (upgrade replica first, then promote to primary) rather than in-place upgrade of the primary. Test RDB restore in staging.

Frequently Asked Questions

Redis and Valkey are separate projects that diverged in 2024 when Redis Ltd. changed the Redis license from BSD to RSALv2/SSPL. Valkey is a Linux Foundation fork of Redis 7.2 that maintains the original BSD license and is governed by an open community including AWS, Google Cloud, Oracle, and Ericsson. Redis 8.0 is the continued development from Redis Ltd. under RSALv2 licensing, with additional features including native vector search and probabilistic data structures. Major cloud providers (AWS ElastiCache, Google Cloud Memorystore, Azure Cache for Redis) have moved their managed offerings to Valkey. For self-hosted deployments, both are technically compatible for most use cases.

Redis 8.0 includes a native vector search engine (previously requiring the RediSearch module) that allows storing high-dimensional vector embeddings as fields in Redis Hashes or JSON documents and performing approximate nearest neighbour (ANN) searches to find semantically similar vectors. You create a vector index using FT.CREATE specifying the vector field, dimensionality, data type, and similarity metric (cosine, L2, inner product). Searches use FT.SEARCH with a KNN query to find the K nearest vectors to a query vector. Indexing uses either HNSW (fast approximate search for large datasets) or FLAT (exact brute-force for smaller datasets). This enables RAG pipelines, semantic search, and recommendation systems using Redis as the vector store.

Redis 8.0 includes several probabilistic data structures natively (previously requiring the RedisBloom module): t-digest for approximate quantile computation over streaming data (e.g., p99 latency tracking); Count-Min Sketch for frequency estimation in data streams; Top-K for identifying the most frequent items in a stream; and Cuckoo Filters as a more capable alternative to Bloom filters (supporting deletion). These structures use fixed or sub-linear memory regardless of data volume, making them ideal for high-velocity streaming analytics where exact computation would require storing all raw data.

For new projects using managed cloud services (AWS, GCP, Azure), Valkey is the practical default since major cloud providers have moved to Valkey for their managed Redis-compatible offerings. For self-hosted deployments: if you need Redis Stack features (vector search, JSON, full-text search, time series) and are comfortable with RSALv2 licensing, Redis 8.0 is compelling as these are now native. If you require an OSI-approved open source license or prefer Linux Foundation governance, Valkey is the choice. Valkey is currently working on adding similar features, so the capability gap will narrow over time.

t-digest is a probabilistic data structure for computing accurate quantile estimates (median, p90, p95, p99, etc.) over streaming data with O(1) memory per percentile, regardless of how many data points have been observed. It is particularly accurate at the tails of the distribution (p99, p99.9) where latency SLAs are typically defined. Use t-digest when you need real-time percentile tracking for latency monitoring, response time SLA dashboards, or any streaming metric where storing all raw values is impractical. In Redis 8.0, the commands are TDIGEST.CREATE, TDIGEST.ADD, and TDIGEST.QUANTILE.

For a RAG (Retrieval-Augmented Generation) pipeline with Redis: create a vector index on your document collection (FT.CREATE with VECTOR field); generate embeddings for your documents using an embedding model (OpenAI text-embedding-3-small, Cohere embed-v3, or a local model); store each document with its embedding in a Redis Hash or JSON document (HSET or JSON.SET); at query time, generate an embedding for the user's question; search for the K nearest document embeddings to the query vector (FT.SEARCH with KNN); retrieve the matching documents and include them in the LLM prompt as context. Redis's in-memory speed makes it particularly suited for real-time RAG applications requiring sub-millisecond vector search latency.

In Redis 8.0, the previously separate Redis Stack modules β€” RediSearch (full-text search and vector search), RedisJSON (JSON data type), RedisBloom (probabilistic data structures), and RedisTimeSeries (time series data type) β€” have been integrated into the Redis core engine. You no longer need to load them as external modules with the loadmodule configuration directive. The commands remain the same (FT.CREATE, JSON.GET, BF.ADD, TS.CREATE), but the functionality is available in the base Redis 8.0 installation without any additional configuration. This simplifies deployment and eliminates the need to manage separate module versioning.

The Redis Source Available License v2 (RSALv2) allows free use of Redis for almost all purposes including production commercial use, SaaS applications, and internal enterprise deployments. The restriction is narrow: you cannot use Redis to offer a commercial managed service that competes directly with Redis Ltd.'s own cloud offerings (Redis Cloud). In other words, if you are AWS, Google Cloud, or Azure wanting to sell Redis as a managed service commercially, you cannot use the RSALv2 version without a commercial agreement with Redis Ltd. β€” which is why they forked Valkey. For virtually all enterprise users who run Redis themselves or use it in their own applications, RSALv2 imposes no practical restrictions versus the previous BSD license.

DATABASE D

Ready to Implement Database Deep Dives?

Our specialist team delivers measurable ROI from Redis 80 new data structures and vector programmes for enterprise and D2C brands.

Free Audit