Re: AOP caching in Guice

79 views
Skip to first unread message

Simone Tripodi

unread,
May 29, 2013, 3:03:55 AM5/29/13
to google...@googlegroups.com
*really* interesting, Daniel!!!

Just a couple of questions:

* Do you handle javax.cache annotations?

* Would you be interested on joining and maintaining that component
in Apache Onami[1]? Few months ago, a group of Guice users, founded a
project under the ASF umbrella called Apache Onami, focused on
developing and maintaining Guice extensions, and recently we became
graduated as Apache TopLevelProject.
We already started implementing a javax.cache integration, but nobody
has had enough spare time to terminate it, it would be great having
you onboard. Just join the dev@ ML if you are interested on
following-up the discussion!

Have a nice day, all the best!
-Simo

[1] http://onami.apache.org/

http://people.apache.org/~simonetripodi/
http://twitter.com/simonetripodi


On Thu, May 23, 2013 at 6:30 PM, Daniel Watrous
<daniel....@gmail.com> wrote:
> 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 google-guice...@googlegroups.com.
> To post to this group, send email to google...@googlegroups.com.
> 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 all
Reply to author
Forward
0 new messages