Class RedisChatMemoryProperties

java.lang.Object
org.springframework.ai.model.chat.memory.redis.autoconfigure.RedisChatMemoryProperties

@Deprecated(since="2.0.1", forRemoval=true) public class RedisChatMemoryProperties extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Configuration properties for Redis-based chat memory. Every getter/setter delegates to the corresponding RedisChatMemoryRepositoryProperties instance, so that legacy spring.ai.chat.memory.redis properties keep applying to the same underlying configuration as the current spring.ai.chat.memory.repository.redis prefix.
Author:
Brian Sam-Bodden, Sebastien Deleuze
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Deprecated, for removal: This API element is subject to removal in a future version.
    @Nullable String
    Deprecated, for removal: This API element is subject to removal in a future version.
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
    @Nullable Duration
    Deprecated, for removal: This API element is subject to removal in a future version.
    @Nullable String
    Deprecated, for removal: This API element is subject to removal in a future version.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setIndexName(String indexName)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setInitializeSchema(Boolean initializeSchema)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setKeyPrefix(String keyPrefix)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setMaxConversationIds(Integer maxConversationIds)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setMaxMessagesPerConversation(Integer maxMessagesPerConversation)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setPassword(@Nullable String password)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setPort(int port)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setTimeToLive(@Nullable Duration timeToLive)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setUsername(@Nullable String username)
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CONFIG_PREFIX

      public static final String CONFIG_PREFIX
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
  • Constructor Details

    • RedisChatMemoryProperties

      public RedisChatMemoryProperties(RedisChatMemoryRepositoryProperties delegate)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getHost

      @DeprecatedConfigurationProperty(replacement="spring.ai.chat.memory.repository.redis.host") @Deprecated(since="2.0.1", forRemoval=true) public String getHost()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setHost

      public void setHost(String host)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getPort

      @DeprecatedConfigurationProperty(replacement="spring.ai.chat.memory.repository.redis.port") @Deprecated(since="2.0.1", forRemoval=true) public int getPort()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setPort

      public void setPort(int port)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getUsername

      @DeprecatedConfigurationProperty(replacement="spring.ai.chat.memory.repository.redis.username") @Deprecated(since="2.0.1", forRemoval=true) public @Nullable String getUsername()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setUsername

      public void setUsername(@Nullable String username)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getPassword

      @DeprecatedConfigurationProperty(replacement="spring.ai.chat.memory.repository.redis.password") @Deprecated(since="2.0.1", forRemoval=true) public @Nullable String getPassword()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setPassword

      public void setPassword(@Nullable String password)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getIndexName

      @DeprecatedConfigurationProperty(replacement="spring.ai.chat.memory.repository.redis.index-name") @Deprecated(since="2.0.1", forRemoval=true) public String getIndexName()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setIndexName

      public void setIndexName(String indexName)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getKeyPrefix

      @DeprecatedConfigurationProperty(replacement="spring.ai.chat.memory.repository.redis.key-prefix") @Deprecated(since="2.0.1", forRemoval=true) public String getKeyPrefix()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setKeyPrefix

      public void setKeyPrefix(String keyPrefix)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getTimeToLive

      @DeprecatedConfigurationProperty(replacement="spring.ai.chat.memory.repository.redis.time-to-live") @Deprecated(since="2.0.1", forRemoval=true) public @Nullable Duration getTimeToLive()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setTimeToLive

      public void setTimeToLive(@Nullable Duration timeToLive)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getInitializeSchema

      @DeprecatedConfigurationProperty(replacement="spring.ai.chat.memory.repository.redis.initialize-schema") @Deprecated(since="2.0.1", forRemoval=true) public Boolean getInitializeSchema()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setInitializeSchema

      public void setInitializeSchema(Boolean initializeSchema)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getMaxConversationIds

      @DeprecatedConfigurationProperty(replacement="spring.ai.chat.memory.repository.redis.max-conversation-ids") @Deprecated(since="2.0.1", forRemoval=true) public Integer getMaxConversationIds()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setMaxConversationIds

      public void setMaxConversationIds(Integer maxConversationIds)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getMaxMessagesPerConversation

      @DeprecatedConfigurationProperty(replacement="spring.ai.chat.memory.repository.redis.max-messages-per-conversation") @Deprecated(since="2.0.1", forRemoval=true) public Integer getMaxMessagesPerConversation()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setMaxMessagesPerConversation

      public void setMaxMessagesPerConversation(Integer maxMessagesPerConversation)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getMetadataFields

      @DeprecatedConfigurationProperty(replacement="spring.ai.chat.memory.repository.redis.metadata-fields") @Deprecated(since="2.0.1", forRemoval=true) public List<Map<String,String>> getMetadataFields()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setMetadataFields

      public void setMetadataFields(List<Map<String,String>> metadataFields)
      Deprecated, for removal: This API element is subject to removal in a future version.