Skip to content

joseasouza/cdi-cache-extension

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CDI Cache Extension

An extension CDI for cache method results.

##How to use

Simply add the @Cacheable annotation on method and inject the bean normally.

import java.util.concurrent.TimeUnit;
import br.com.logique.methodcache.Cacheable;

public class MyBean{

    @Cacheable(lifeTime = 30, unit = TimeUnit.SECONDS)
    void doSomething(String arg) {
        //do something slow
    }
    
}

About

A CDI Cache Extension to cache method results

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%