rabbah commented on a change in pull request #2624: Add cache invalidation
between controllers
URL:
https://github.com/apache/incubator-openwhisk/pull/2624#discussion_r133849169
##########
File path: common/scala/src/main/scala/whisk/core/entity/DocInfo.scala
##########
@@ -83,6 +83,11 @@ protected[core] case class DocInfo protected[entity] (id:
DocId, rev: DocRevisio
s"$id.$rev".hashCode
}
}
+
+ def asCacheKey() = {
+ val revision = if (rev.empty) None else Some(rev.toString())
+ CacheKey(id.toString(), revision)
Review comment:
i think there is an asString method on id and rev.
----------------------------------------------------------------
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