Class NullCacheService
java.lang.Object
rocks.imsofa.ai.puppychatter.cache.NullCacheService
- All Implemented Interfaces:
CacheService
- Author:
- lendle
-
Constructor Summary
Constructors -
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
-
Constructor Details
-
NullCacheService
public NullCacheService()
-
-
Method Details
-
getCachedReply
Description copied from interface:CacheServicethe last conversation is the question- Specified by:
getCachedReplyin interfaceCacheService- Parameters:
conversations-- Returns:
-
sync2BoundConversations
Description copied from interface:CacheServiceconvert each instances in the input conversation list to conversation record stored in database- Specified by:
sync2BoundConversationsin interfaceCacheService- Parameters:
conversations-- Returns:
-
cacheReply
- Specified by:
cacheReplyin interfaceCacheService- Throws:
Exception
-
removeCache
Description copied from interface:CacheServiceremove the corresponding cache entry- Specified by:
removeCachein interfaceCacheService- Parameters:
conversations- the last conversation list- Throws:
Exception
-