Skip to content

Commit

Permalink
Merge pull request #71 from BRP-API/feature/#70-Als-PO-wil-ik-dat-de-…
Browse files Browse the repository at this point in the history
…huidige-cache-implementatie-wordt-verwijderd

Feature/#70 als po wil ik dat de huidige cache implementatie wordt verwijderd
  • Loading branch information
FrozenSync authored Aug 28, 2024
2 parents 5ad5d57 + 588b0bc commit e3ea99b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 53 deletions.
7 changes: 1 addition & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<groupId>nl.rijksoverheid.mev</groupId>
<artifactId>gezag</artifactId>
<version>1.4.5</version>
<version>1.5.0</version>

<name>gezag</name>
<description>Gezag</description>
Expand Down Expand Up @@ -172,11 +172,6 @@
</dependency>

<!-- Brp-Adapter specific -->
<dependency>
<groupId>org.ehcache</groupId>
<artifactId>ehcache</artifactId>
<version>3.10.8</version>
</dependency>
<dependency>
<groupId>io.github.resilience4j</groupId>
<artifactId>resilience4j-circuitbreaker</artifactId>
Expand Down
41 changes: 0 additions & 41 deletions src/main/java/nl/rijksoverheid/mev/CacheConfiguration.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
import nl.rijksoverheid.mev.gezagsmodule.domain.Persoonslijst;
import nl.rijksoverheid.mev.gezagsmodule.model.Burgerservicenummer;
import org.jooq.DSLContext;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.cache.annotation.Caching;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

Expand Down Expand Up @@ -43,10 +41,6 @@ public JooqPersoonslijstFinder(Clock clock, DSLContext create) {
this.create = create;
}

@Caching(cacheable = {
@Cacheable(value = "persoonslijsten", unless = "#result == null"),
@Cacheable(value = "persoonslijstenNull", unless = "#result != null")
})
@Override
public Optional<Persoonslijst> findPersoonslijst(Burgerservicenummer burgerservicenummer) {
var plPersoonPersoon = findPlPersoonByPersoonTypeIsPersoonAndBurgerservicenummer(burgerservicenummer);
Expand Down

0 comments on commit e3ea99b

Please sign in to comment.