I just posted a library that enables AOP caching in my Guice applications. 
You can find the library on github, including maven details to get started 
fast:

https://github.com/dwatrous/cache4guice

Here's an example of how easy it is to use.

    @Cached(timeToLiveSeconds = 3600)
    public String getFullAddress(Integer id, String language) {
        // do something to find and calculate the full address, like a database 
query
        String fullAddress = rs.get("address") + rs.get("zip");
        return fullAddress;
    }

It's fast too. Using ehcache, most cache hits returned in 1-3 milliseconds.

This builds on the original work of bsoutham here:
https://code.google.com/p/cache4guice/


-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to