views:

33

answers:

1

I have 2 functions: first

public String doA(Integer userId, String someValue)

that I want to cache (taking into account parameters of function), and second

public String doB(Integer userId)

that should drops cache of function "doA" for current userId.

Does Ehcache support something like memcached tags or anything other that can helps me? Or may be anybody knows how I can solve my problem using ehcache annotations?

A: 

Ehcache annotations should do the trick.

Ehcache annotations let you (in fact, require you) to declare which cache applies to each method.

As I recently discovered ...

Synesso