开发者

Programatic cache creation

开发者 https://www.devze.com 2022-12-31 11:43 出处:网络
开发者_开发问答I switched from xml to programmatically cache creation and now I can\'t retrieve my cache by name.
开发者_开发问答

I switched from xml to programmatically cache creation and now I can't retrieve my cache by name.

Here's a code snippet that shows what I'm doing maybe you can spot an obvious error?

http://gist.github.com/405546

(I'm only showing the relevant lines here).


This says that you think that a cache named default is available from the cache manager, but it's not. None of the code you posted shows how the default cache was instatiated and added to the cache manager.


Just found how to make it work, out of trial and error.

See the updated gist.

This ehcache behavior is as counter intuitive as it gets.

0

精彩评论

暂无评论...
验证码 换一张
取 消