Skip to content

fabianedl777/reactor-cache

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reactor Cache

  • Reactor Cache Core
  • Reactor Cache Spring

How to use ?

  • Just write @MonoCacheable annotation with cache name.
  • Support only Mono type public method. (Flux not support now)
  • Support only one method parameter.

Example

@EnableCaching
@Configuration
class Example {

    @MonoCacheable(value="CACHE_NAME_1")
    public Mono<String> find(long id) {
        ...
    }
    
    @MonoCacheable(value="CACHE_NAME_2")
    public Mono<YourObject> find(String id) {
        ...
    }
}

About

Reactor Cache

Resources

Stars

Watchers

Forks

Packages

No packages published