#9 ehcache demo cleanup

This commit is contained in:
Calvin
2012-03-28 14:11:15 +08:00
parent c9f27dd37d
commit c370f8ec72
2 changed files with 3 additions and 3 deletions
@@ -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>