[
https://issues.apache.org/jira/browse/KARAF-6017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17624472#comment-17624472
]
ASF GitHub Bot commented on KARAF-6017:
---------------------------------------
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.
> Provide cache service
> ---------------------
>
> Key: KARAF-6017
> URL: https://issues.apache.org/jira/browse/KARAF-6017
> Project: Karaf
> Issue Type: New Feature
> Components: karaf
> Reporter: Jean-Baptiste Onofré
> Priority: Major
>
> Similar to the scheduler feature we have in Karaf (façading quartz), we could
> provide a cache service (façading ehcache).
--
This message was sent by Atlassian Jira
(v8.20.10#820010)