Class RedisVLChatMemoryStore.Builder

java.lang.Object
com.redis.vl.langchain4j.RedisVLChatMemoryStore.Builder
Enclosing class:
RedisVLChatMemoryStore

public static class RedisVLChatMemoryStore.Builder extends Object
Builder for RedisVLChatMemoryStore.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • jedis

      public RedisVLChatMemoryStore.Builder jedis(redis.clients.jedis.UnifiedJedis jedis)
      Sets the Redis client.
      Parameters:
      jedis - The Jedis client
      Returns:
      This builder
    • keyPrefix

      public RedisVLChatMemoryStore.Builder keyPrefix(String keyPrefix)
      Sets the key prefix.
      Parameters:
      keyPrefix - The key prefix
      Returns:
      This builder
    • ttlSeconds

      public RedisVLChatMemoryStore.Builder ttlSeconds(Integer ttlSeconds)
      Sets the TTL for conversation history.
      Parameters:
      ttlSeconds - TTL in seconds (null for no expiration)
      Returns:
      This builder
    • build

      public RedisVLChatMemoryStore build()
      Builds the chat memory store.
      Returns:
      A new RedisVLChatMemoryStore