#9 ehcache demo cleanup
This commit is contained in:
Vendored
+2
-2
@@ -11,7 +11,7 @@ import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springside.modules.test.spring.SpringContextTestCase;
|
||||
|
||||
/**
|
||||
* 本地缓存策略,使用EhCache, 支持限制总数, Idle time/LRU失效, 持久化到磁盘等功能.
|
||||
* 演示Ehcache的配置.
|
||||
*
|
||||
* 配置见applicationContext-ehcache.xml与ehcache.xml
|
||||
*
|
||||
@@ -28,7 +28,7 @@ public class EhcacheDemo extends SpringContextTestCase {
|
||||
private Cache cache;
|
||||
|
||||
@Test
|
||||
public void normal() {
|
||||
public void demo() {
|
||||
|
||||
cache = ehcacheManager.getCache(CACHE_NAME);
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<!-- 用户授权/认证信息Cache, 采用EhCachrmi集群 -->
|
||||
<!-- 用户授权/认证信息Cache, 采用EhCache RMI集群 -->
|
||||
<bean id="shiroCacheManager" class="org.apache.shiro.cache.ehcache.EhCacheManager">
|
||||
<property name="cacheManager" ref="shiroEhcacheManager"/>
|
||||
</bean>
|
||||
|
||||
Reference in New Issue
Block a user