Unverified Commit 829a4424 authored by Anand Mohan's avatar Anand Mohan Committed by GitHub
Browse files

Merge pull request #202 from EGA-archive/feature/EE-2004

Removed In Memory Caching For Ga4gh Permissions
parents 481437c1 5766c9f5
Pipeline #162091 passed with stages
in 6 minutes and 47 seconds
......@@ -110,12 +110,9 @@ public class MyConfiguration {
GuavaCache indexFile = new GuavaCache("indexFile", CacheBuilder.newBuilder()
.expireAfterWrite(24, TimeUnit.HOURS)
.build());
GuavaCache datasetsGa4gh = new GuavaCache("datasetsGa4gh", CacheBuilder.newBuilder()
.expireAfterWrite(50, TimeUnit.MINUTES)
.build());
simpleCacheManager.setCaches(Arrays.asList(tokens, access, reqFile, index, fileHead, headerFile, fileSize,
fileFile, fileDatasetFile, datasetFile, indexFile, datasetsGa4gh));
fileFile, fileDatasetFile, datasetFile, indexFile));
return simpleCacheManager;
}
......
......@@ -19,7 +19,6 @@ package eu.elixir.ega.ebi.commons.shared.service.internal;
import eu.elixir.ega.ebi.commons.shared.dto.JWTTokenDTO;
import eu.elixir.ega.ebi.commons.shared.service.Ga4ghService;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
......@@ -46,7 +45,6 @@ public class Ga4ghServiceImpl implements Ga4ghService {
this.authorization = authorization;
}
@Cacheable(value = "datasetsGa4gh", key = "#userId")
@Override
public List<String> getDatasets(final String userId) {
final HttpHeaders headers = new HttpHeaders();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment