rabbah commented on a change in pull request #2628: Remove spray-caching
dependency.
URL:
https://github.com/apache/incubator-openwhisk/pull/2628#discussion_r133605665
##########
File path:
common/scala/src/main/scala/whisk/core/database/MultipleReadersSingleWriterCache.scala
##########
@@ -427,9 +427,15 @@ trait MultipleReadersSingleWriterCache[W, Winfo] {
*
* The unimplemented methods are not needed for our internal implementation.
*/
-private class ConcurrentMapBackedCache[V](store: ConcurrentMap[Any,
Future[V]]) extends Cache[V] {
+private class ConcurrentMapBackedCache[V](store: ConcurrentMap[Any,
Future[V]]) {
+ val cache = this
- def get(key: Any) = Option(store.get(key))
+ def apply(key: Any) = new Keyed(key)
+
+ class Keyed(key: Any) {
+ def apply(magnet: ? ValueMagnet[V])(implicit ec: ExecutionContext):
Future[V] =
Review comment:
convert to ascii?
----------------------------------------------------------------
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