Skip to content

Commit

Permalink
Pojo cache (#33)
Browse files Browse the repository at this point in the history
Cache no longer serialize and compress data. The objects will be contained as they are, as pure-old-java-objects!

* New CacheObject interface & PojoPacker

* Added PojoCache

* Update gradle and spock

* Rename CacheObject to match existing consumers

* Remove FintCache and rename PojoCache

* Change input in Cache to CacheObject and internal+output to PojoCacheObject

* Add more tests and equals+hashcode for PojoCacheObject

* Refactor - Split FintCache and move internal updates to FintCacheList

* Fix syntax and comments in test

---------

Co-authored-by: Hknots <[email protected]>
  • Loading branch information
trondsevre and hknots authored Nov 23, 2023
1 parent 18149c6 commit cb9cece
Show file tree
Hide file tree
Showing 22 changed files with 639 additions and 640 deletions.
69 changes: 24 additions & 45 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,62 +1,41 @@
plugins {
id 'java-library'
id 'maven-publish'
id 'groovy'
id 'com.github.ben-manes.versions' version '0.21.0'
id 'com.github.kt3k.coveralls' version '2.8.2'
}

group = 'no.fint'

apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'groovy'
apply plugin: 'jacoco'

jar {
baseName = 'fint-cache'
}
group = 'no.fintlabs'

sourceCompatibility = 1.8

repositories {
maven { url 'https://repo.fintlabs.no/releases' }
jcenter()
mavenLocal()
maven { url 'https://repo.fintlabs.no/releases' }
mavenCentral()
}

apply from: 'https://raw.githubusercontent.com/FINTlibs/fint-buildscripts/v1.5.0/dependencies.gradle'
dependencies {
compile('no.fint:fint-event-model:3.0.1')
compile('no.fint:fint-hazelcast:1.2.0')

compile("org.springframework.boot:spring-boot-starter-web:${springBootVersion}")
compile("org.projectlombok:lombok:${lombokVersion}")
compile('commons-codec:commons-codec:1.12')
compile('com.google.guava:guava:27.1-jre')

testCompile("cglib:cglib-nodep:${cglibVersion}")
testCompile("org.springframework.boot:spring-boot-starter-test:${springBootVersion}")
testCompile("org.spockframework:spock-spring:${spockSpringVersion}")
testCompile("org.spockframework:spock-core:${spockSpringVersion}")
testCompile('no.fint:fint-test-utils:0.0.6')
testCompile('org.apache.commons:commons-math3:3.6.1')
implementation('no.fint:fint-event-model:3.0.1')
//implementation('no.fint:fint-hazelcast:1.2.0')

implementation("org.springframework.boot:spring-boot-starter-web:${springBootVersion}")
//compile("org.projectlombok:lombok:${lombokVersion}")
compileOnly "org.projectlombok:lombok:1.18.28"
annotationProcessor "org.projectlombok:lombok:1.18.28"
implementation('commons-codec:commons-codec:1.16.0')
implementation('com.google.guava:guava:32.1.2-jre')

testImplementation("cglib:cglib-nodep:${cglibVersion}")
testImplementation("org.springframework.boot:spring-boot-starter-test:${springBootVersion}")
testImplementation("org.spockframework:spock-spring:2.0-groovy-3.0")
testImplementation("org.spockframework:spock-core:2.0-groovy-3.0")
testImplementation('no.fint:fint-test-utils:0.0.6')
testImplementation('org.apache.commons:commons-math3:3.6.1')
testCompileOnly("org.projectlombok:lombok:1.18.28")
testAnnotationProcessor("org.projectlombok:lombok:1.18.28")
}

task wrapper(type: Wrapper) {
gradleVersion = gradleVersion
}

test {
testLogging {
events 'passed', 'skipped', 'failed'
}
}

jacocoTestReport {
reports {
xml.enabled true
}
}

apply from: 'https://raw.githubusercontent.com/FINTlibs/fint-buildscripts/master/dependencyReport.gradle'

apply from: 'https://raw.githubusercontent.com/FINTLabs/fint-buildscripts/master/reposilite.fint.ga.gradle'
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 3 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit cb9cece

Please sign in to comment.