Skip to content
Snippets Groups Projects
Commit 84b0c378 authored by Mirco Nasuti's avatar Mirco Nasuti
Browse files

Revert "add caching to experiments"

This reverts commit 0496b343.
parent 0496b343
No related branches found
No related tags found
No related merge requests found
...@@ -14,9 +14,6 @@ import eu.hbp.mip.repositories.ModelRepository; ...@@ -14,9 +14,6 @@ import eu.hbp.mip.repositories.ModelRepository;
import eu.hbp.mip.utils.JSONUtil; import eu.hbp.mip.utils.JSONUtil;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.CachePut;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.http.HttpStatus; import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -75,8 +72,6 @@ public class ExperimentApi { ...@@ -75,8 +72,6 @@ public class ExperimentApi {
@ApiOperation(value = "Send a request to the workflow to run an experiment", response = Experiment.class) @ApiOperation(value = "Send a request to the workflow to run an experiment", response = Experiment.class)
@CachePut("exp")
@CacheEvict(value = "exps", allEntries = true)
@RequestMapping(method = RequestMethod.POST) @RequestMapping(method = RequestMethod.POST)
public ResponseEntity<String> runExperiment(@RequestBody ExperimentQuery expQuery) { public ResponseEntity<String> runExperiment(@RequestBody ExperimentQuery expQuery) {
LOGGER.info("Run an experiment"); LOGGER.info("Run an experiment");
...@@ -109,7 +104,6 @@ public class ExperimentApi { ...@@ -109,7 +104,6 @@ public class ExperimentApi {
} }
@ApiOperation(value = "get an experiment", response = Experiment.class) @ApiOperation(value = "get an experiment", response = Experiment.class)
@Cacheable("exp")
@RequestMapping(value = "/{uuid}", method = RequestMethod.GET) @RequestMapping(value = "/{uuid}", method = RequestMethod.GET)
public ResponseEntity<String> getExperiment(@ApiParam(value = "uuid", required = true) @PathVariable("uuid") String uuid) { public ResponseEntity<String> getExperiment(@ApiParam(value = "uuid", required = true) @PathVariable("uuid") String uuid) {
LOGGER.info("Get an experiment"); LOGGER.info("Get an experiment");
...@@ -177,7 +171,6 @@ public class ExperimentApi { ...@@ -177,7 +171,6 @@ public class ExperimentApi {
} }
@ApiOperation(value = "list experiments", response = Experiment.class, responseContainer = "List") @ApiOperation(value = "list experiments", response = Experiment.class, responseContainer = "List")
@Cacheable("exps")
@RequestMapping(value = "/mine", method = RequestMethod.GET, params = {"maxResultCount"}) @RequestMapping(value = "/mine", method = RequestMethod.GET, params = {"maxResultCount"})
public ResponseEntity<String> listExperiments( public ResponseEntity<String> listExperiments(
@ApiParam(value = "maxResultCount", required = false) @RequestParam int maxResultCount @ApiParam(value = "maxResultCount", required = false) @RequestParam int maxResultCount
...@@ -203,7 +196,6 @@ public class ExperimentApi { ...@@ -203,7 +196,6 @@ public class ExperimentApi {
} }
@ApiOperation(value = "List available methods and validations", response = String.class) @ApiOperation(value = "List available methods and validations", response = String.class)
@Cacheable("methods")
@RequestMapping(path = "/methods", method = RequestMethod.GET) @RequestMapping(path = "/methods", method = RequestMethod.GET)
public ResponseEntity<String> listAvailableMethodsAndValidations() throws IOException { public ResponseEntity<String> listAvailableMethodsAndValidations() throws IOException {
LOGGER.info("List available methods and validations"); LOGGER.info("List available methods and validations");
......
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