【发布时间】:2014-06-11 21:39:00
【问题描述】:
我正在使用 Spring Security ACL,它需要定义缓存。到目前为止,我一直在使用这个:
@Bean(name = { "defaultAclCache", "aclCache" })
protected AclCache defaultAclCache() {
return new SpringCacheBasedAclCache(defaultAclJCacheFactory(), defaultPermissionGrantingStrategy(), defaultAclAuthorizationStrategy());
}
一切正常。但是,我切换到使用jcache,现在defaultAclJCacheFactory() 返回一个与SpringCacheBasedAclCache 不兼容的javax.cache.Cache 实例:
@Bean(name = { "defaultAclJCacheFactory", "aclJCacheFactory" })
protected Cache defaultAclJCacheFactory() {
return cacheManager.getCache("acl_cache");
}
我试图搜索org.springframework.security.acls.model.AclCache 的JCache 实现,但只有一个用于spring 缓存和一个用于EhCache。有没有计划为jcache介绍一个?
【问题讨论】:
标签: spring spring-security spring-security-acl jcache