You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by qh...@apache.org on 2015/05/18 13:24:09 UTC
[1/2] incubator-kylin git commit: KYLIN-771
Repository: incubator-kylin
Updated Branches:
refs/heads/0.8.0 8bcaf651f -> c93bc846e
KYLIN-771
Project: http://git-wip-us.apache.org/repos/asf/incubator-kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kylin/commit/83cedc62
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/83cedc62
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/83cedc62
Branch: refs/heads/0.8.0
Commit: 83cedc628770d2937272a579fc51e4e5bbd4f8d6
Parents: 83680be
Author: qianhao.zhou <qi...@ebay.com>
Authored: Mon May 18 19:17:00 2015 +0800
Committer: qianhao.zhou <qi...@ebay.com>
Committed: Mon May 18 19:22:46 2015 +0800
----------------------------------------------------------------------
.../main/java/org/apache/kylin/rest/service/CacheService.java | 5 +++++
1 file changed, 5 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/83cedc62/server/src/main/java/org/apache/kylin/rest/service/CacheService.java
----------------------------------------------------------------------
diff --git a/server/src/main/java/org/apache/kylin/rest/service/CacheService.java b/server/src/main/java/org/apache/kylin/rest/service/CacheService.java
index 6ce8b83..913ae35 100644
--- a/server/src/main/java/org/apache/kylin/rest/service/CacheService.java
+++ b/server/src/main/java/org/apache/kylin/rest/service/CacheService.java
@@ -26,6 +26,9 @@ import org.apache.kylin.invertedindex.IIManager;
import org.apache.kylin.metadata.project.ProjectInstance;
import org.apache.kylin.metadata.project.ProjectManager;
import org.apache.kylin.metadata.realization.RealizationType;
+import org.apache.kylin.rest.controller.QueryController;
+import org.springframework.cache.annotation.CacheEvict;
+import org.springframework.cache.annotation.Caching;
import org.springframework.stereotype.Component;
import java.io.IOException;
@@ -36,6 +39,7 @@ import java.util.List;
@Component("cacheService")
public class CacheService extends BasicService {
+ @Caching(evict = { @CacheEvict(value = QueryController.SUCCESS_QUERY_CACHE, allEntries = true), @CacheEvict(value = QueryController.EXCEPTION_QUERY_CACHE, allEntries = true) })
public void rebuildCache(Broadcaster.TYPE cacheType, String cacheKey) {
final String log = "rebuild cache type: " + cacheType + " name:" + cacheKey;
try {
@@ -93,6 +97,7 @@ public class CacheService extends BasicService {
}
}
+ @Caching(evict = { @CacheEvict(value = QueryController.SUCCESS_QUERY_CACHE, allEntries = true), @CacheEvict(value = QueryController.EXCEPTION_QUERY_CACHE, allEntries = true) })
public void removeCache(Broadcaster.TYPE cacheType, String cacheKey) {
final String log = "remove cache type: " + cacheType + " name:" + cacheKey;
try {
[2/2] incubator-kylin git commit: Merge branch '0.8.0' of
https://git-wip-us.apache.org/repos/asf/incubator-kylin into
streaming-localdict
Posted by qh...@apache.org.
Merge branch '0.8.0' of https://git-wip-us.apache.org/repos/asf/incubator-kylin into streaming-localdict
Project: http://git-wip-us.apache.org/repos/asf/incubator-kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kylin/commit/c93bc846
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/c93bc846
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/c93bc846
Branch: refs/heads/0.8.0
Commit: c93bc846ef09c34011f6fd0c9a7c00178dd9e591
Parents: 83cedc6 8bcaf65
Author: qianhao.zhou <qi...@ebay.com>
Authored: Mon May 18 19:23:24 2015 +0800
Committer: qianhao.zhou <qi...@ebay.com>
Committed: Mon May 18 19:23:24 2015 +0800
----------------------------------------------------------------------
----------------------------------------------------------------------