awrb commented on code in PR #1677:
URL: https://github.com/apache/karaf/pull/1677#discussion_r1005696744
##########
cache/api/src/main/java/org/apache/karaf/cache/api/CacheService.java:
##########
@@ -0,0 +1,17 @@
+package org.apache.karaf.cache.api;
+
+import javax.cache.configuration.Configuration;
+import java.util.List;
+
+public interface CacheService {
+
+ <K, V> void createCache(String name, Configuration<K, V> configuration);
+
+ <K, V> V get(String name, K key);
+
+ <K, V> void put(String name, K key, V value);
+
+ void invalidateCache(String name);
+
+ List<String> listCaches();
+}
Review Comment:
A method to get the entire JSR107 `Cache` (other than get/put) might be
useful too.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]