Skip to content

Redis

One of the persistent storage options for the Inspector is built on top of Redis. The Redis Store offers effortless and cost-effective storage suitable for a wide range of use cases.

Configuration

  • defaultExpire: number: Optional expiration time to be applied to entries without a set expiration (in milliseconds).
  • keyPrefix: string: The prefix applied to all keys within Redis.
  • partitionSize: number: The duration of each partition (in milliseconds, default is 4 hours).
  • redis: RedisClient: The RedisClient instance from the ioredis package.

Data Partitioning

Data stored in Redis is organized into partitions based on the entry timestamp. Each partition represents a “sorted set” containing individual entries within its time boundary. This approach enables rapid lookups and efficient data expiration.

The size of each partition is determined by the configuration parameter partitionSize.

Memory Requirements

TODO