Class RedisChatMemoryProperties
java.lang.Object
org.springframework.ai.model.chat.memory.redis.autoconfigure.RedisChatMemoryProperties
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
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptiongetHost()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 StringDeprecated, for removal: This API element is subject to removal in a future version.intgetPort()Deprecated, for removal: This API element is subject to removal in a future version.@Nullable DurationDeprecated, for removal: This API element is subject to removal in a future version.@Nullable StringDeprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.voidsetIndexName(String indexName) Deprecated, for removal: This API element is subject to removal in a future version.voidsetInitializeSchema(Boolean initializeSchema) Deprecated, for removal: This API element is subject to removal in a future version.voidsetKeyPrefix(String keyPrefix) Deprecated, for removal: This API element is subject to removal in a future version.voidsetMaxConversationIds(Integer maxConversationIds) Deprecated, for removal: This API element is subject to removal in a future version.voidsetMaxMessagesPerConversation(Integer maxMessagesPerConversation) Deprecated, for removal: This API element is subject to removal in a future version.voidsetMetadataFields(List<Map<String, String>> metadataFields) Deprecated, for removal: This API element is subject to removal in a future version.voidsetPassword(@Nullable String password) Deprecated, for removal: This API element is subject to removal in a future version.voidsetPort(int port) Deprecated, for removal: This API element is subject to removal in a future version.voidsetTimeToLive(@Nullable Duration timeToLive) Deprecated, for removal: This API element is subject to removal in a future version.voidsetUsername(@Nullable String username) Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Details
-
CONFIG_PREFIX
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
-
Constructor Details
-
RedisChatMemoryProperties
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
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
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
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
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
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
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
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
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
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
Deprecated, for removal: This API element is subject to removal in a future version.
-
RedisChatMemoryRepositoryPropertiesinstead.