rabbah commented on a change in pull request #2624: Add cache invalidation
between controllers
URL:
https://github.com/apache/incubator-openwhisk/pull/2624#discussion_r136112686
##########
File path:
common/scala/src/main/scala/whisk/core/database/MultipleReadersSingleWriterCache.scala
##########
@@ -288,18 +292,28 @@ trait MultipleReadersSingleWriterCache[W, Winfo] {
def cacheSize: Int = cache.size
/**
+ * This method removes an entry from the cache immediately. You can use
this method
+ * if you do not need to perform any updates on the backing store but only
to the cache.
+ */
+ protected[database] def removeId(key: CacheKey)(implicit ec:
ExecutionContext) = {
Review comment:
`protected[database] def removeId(key: CacheKey)(implicit ec:
ExecutionContext): Unit = cache.remove(key)` should work.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services