Class InfinispanChatMemoryStore.Builder
java.lang.Object
dev.langchain4j.store.memory.chat.infinispan.InfinispanChatMemoryStore.Builder
- Enclosing class:
InfinispanChatMemoryStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()cacheConfig(String cacheConfig) Custom Infinispan cache configuration XML.Infinispan cache name to be used, defaults to "chat-memory"createCache(boolean createCache) Create cache in the server, defaults to true.infinispanConfigBuilder(org.infinispan.client.hotrod.configuration.ConfigurationBuilder builder) Infinispan Configuration BuilderremoteCacheManager(org.infinispan.client.hotrod.RemoteCacheManager remoteCacheManager) Pre-configured RemoteCacheManager
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cacheName
Infinispan cache name to be used, defaults to "chat-memory" -
cacheConfig
Custom Infinispan cache configuration XML. When not set, a distributed cache withapplication/x-protostreamencoding is created. -
createCache
Create cache in the server, defaults to true. Whenfalse, the cache must already exist on the server, otherwise building the store fails. -
infinispanConfigBuilder
public InfinispanChatMemoryStore.Builder infinispanConfigBuilder(org.infinispan.client.hotrod.configuration.ConfigurationBuilder builder) Infinispan Configuration Builder -
remoteCacheManager
public InfinispanChatMemoryStore.Builder remoteCacheManager(org.infinispan.client.hotrod.RemoteCacheManager remoteCacheManager) Pre-configured RemoteCacheManager -
build
-