Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
EGA
ega-data-api
Commits
829a4424
Unverified
Commit
829a4424
authored
Jun 03, 2021
by
Anand Mohan
Committed by
GitHub
Jun 03, 2021
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
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
6 deletions
+1
-6
ega-data-api-commons/src/main/java/eu/elixir/ega/ebi/commons/config/MyConfiguration.java
...ava/eu/elixir/ega/ebi/commons/config/MyConfiguration.java
+1
-4
ega-data-api-commons/src/main/java/eu/elixir/ega/ebi/commons/shared/service/internal/Ga4ghServiceImpl.java
...ebi/commons/shared/service/internal/Ga4ghServiceImpl.java
+0
-2
No files found.
ega-data-api-commons/src/main/java/eu/elixir/ega/ebi/commons/config/MyConfiguration.java
View file @
829a4424
...
...
@@ -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
;
}
...
...
ega-data-api-commons/src/main/java/eu/elixir/ega/ebi/commons/shared/service/internal/Ga4ghServiceImpl.java
View file @
829a4424
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment