cloudflightio / cloudflight-platform-spring

Cloudflight Platform for Spring
Apache License 2.0
17 stars 11 forks source link

Caching refactoring and documentation #90

Open m-stego opened 11 months ago

m-stego commented 11 months ago

The caching part is not documented yet. This should be done.

Before documenting it we might check if we can improve the caching config/implementation as it's probably outdated.

Something defining Caches in code like

@Bean
fun xyDataCache(): Cache {
        return ClfCacheBuilder()
                .name(CACHENAME)
                .expireAfterAccess(6, TimeUnit.HOURS)
                .build()
}

would be nice.

So that you can use the name easily in the Annotation@Cacheable(CACHENAME)