`
ljz0721cx
  • 浏览: 11559 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

hibernate缓存并发策略CacheConcurrencyStrategy

阅读更多
首先你可能使用@Cache对缓存处理,该注解有三个属性
@Target({TYPE, METHOD, FIELD})
@Retention(RUNTIME)
public @interface Cache {
	/** concurrency strategy chosen */
	CacheConcurrencyStrategy usage();
	/** cache region name */
	String region() default "";
	/**
	 * whether or not lazy-properties are included in the second level cache
	 * default all, other value: non-lazy
	 */
	String include() default "all";
}

usage中的几个缓存级别
GET,
IGNORE,
NORMAL,
PUT,
REFRESH

再续
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics