Skip to content
 
 

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

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages