【问题标题】:Cache tags with Ehcache使用 Ehcache 缓存标签
【发布时间】:2010-10-05 10:48:39
【问题描述】:

我有两个功能:第一个

public String doA(Integer userId, String someValue)

我要缓存的(考虑到函数的参数),第二个

public String doB(Integer userId)

这应该为当前 userId 删除函数“doA”的缓存。

Ehcache 是否支持 memcached tags 之类的东西或其他可以帮助我的东西?或者可能有人知道我如何使用ehcache annotations 解决我的问题?

【问题讨论】:

    标签: java caching tags ehcache


    【解决方案1】:

    Ehcache 注释应该可以解决问题。

    Ehcache 注释让您(实际上,要求您)声明哪个缓存适用于每个方法。

    正如我recently discovered ...

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-06-20
      • 2012-08-15
      • 2016-08-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多