Package com.tnsai.memory
Class InMemoryStore
java.lang.Object
com.tnsai.memory.AbstractMemoryStore
com.tnsai.memory.InMemoryStore
- All Implemented Interfaces:
MemoryStore
In-memory implementation of MemoryStore.
Thread-safe but volatile (lost on restart).
Uses AbstractMemoryStore for common functionality. This implementation does not persist data - history is cleared on application restart.
Suitable for:
- Development and testing
- Short-lived conversations
- Scenarios where persistence is not required
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.tnsai.memory.AbstractMemoryStore
addMessage, addMessage, clear, getHistory, getRecentHistory, init, prune, search, sizeMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.tnsai.memory.MemoryStore
replaceHistory
-
Constructor Details
-
InMemoryStore
public InMemoryStore()
-