Marcel Stör
2014-07-01 21:35:28 UTC
In a previous post it was asked what cache to use
<https://groups.google.com/d/msg/dropwizard-user/CsWsXtCjDYs/6x24u4ea1B4J>.
The discussion was mainly about "application-level" caches.
I'm interested in caching the JSON responses serialized by Jackson and sent
by Jersey. It'd be tremendously helpful to be able to place @Cache-like
annotations on resource methods like so (borrowed from Play! framework)
@GET
@Timed
@Cached(key = "list", duration = 60)
public Collection<Foo> list()
I know I can solve this on infrastructure level (e.g. Varnish, Squid) but
since Dropwizard offers such a self-contained package I was wondering
whether there are means to achieve what I'm after.
<https://groups.google.com/d/msg/dropwizard-user/CsWsXtCjDYs/6x24u4ea1B4J>.
The discussion was mainly about "application-level" caches.
I'm interested in caching the JSON responses serialized by Jackson and sent
by Jersey. It'd be tremendously helpful to be able to place @Cache-like
annotations on resource methods like so (borrowed from Play! framework)
@GET
@Timed
@Cached(key = "list", duration = 60)
public Collection<Foo> list()
I know I can solve this on infrastructure level (e.g. Varnish, Squid) but
since Dropwizard offers such a self-contained package I was wondering
whether there are means to achieve what I'm after.
--
You received this message because you are subscribed to the Google Groups "dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dropwizard-user+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dropwizard-user+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.