Interface CacheService
- All Known Implementing Classes:
FileSystemCacheService,NullCacheService
public interface CacheService
- Author:
- USER
-
Method Summary
Modifier and TypeMethodDescriptionvoidcacheReply(List<Conversation> query, Conversation reply) getCachedReply(List<Conversation> conversations) the last conversation is the questionvoidremoveCache(List<Conversation> conversations) remove the corresponding cache entrysync2BoundConversations(List<Conversation> conversations) convert each instances in the input conversation list to conversation record stored in database
-
Method Details
-
getCachedReply
the last conversation is the question- Parameters:
conversations-- Returns:
- Throws:
Exception
-
cacheReply
- Throws:
Exception
-
sync2BoundConversations
convert each instances in the input conversation list to conversation record stored in database- Parameters:
conversations-- Returns:
- Throws:
Exception
-
removeCache
remove the corresponding cache entry- Parameters:
conversations- the last conversation list- Throws:
Exception- Since:
- 1.1.0
-