Commit 5766c9f5 authored by Ashutosh Shimpi's avatar Ashutosh Shimpi
Browse files

Removed in memory caching for ga4gh permissions

parent 481437c1
Pipeline #161871 passed with stage
in 2 minutes and 3 seconds
......@@ -110,12 +110,9 @@ public class MyConfiguration {
GuavaCache indexFile = new GuavaCache("indexFile", CacheBuilder.newBuilder()
.expireAfterWrite(24, TimeUnit.HOURS)
GuavaCache datasetsGa4gh = new GuavaCache("datasetsGa4gh", CacheBuilder.newBuilder()
.expireAfterWrite(50, TimeUnit.MINUTES)
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")
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