/**
|
* projectName: zq-erp
|
* fileName: LocalCacheTest.java
|
* packageName: com.matrix
|
* date: 2021-10-25 14:03
|
* copyright(c) 2021 http://www.hydee.cn/ Inc. All rights reserved.
|
*/
|
package com.matrix;
|
|
import com.matrix.system.common.init.LocalCache;
|
import org.junit.Assert;
|
import org.junit.Test;
|
|
import java.io.IOException;
|
|
/**
|
* @version: V1.0
|
* @author: JiangYouYao
|
* @className: LocalCacheTest
|
* @packageName: com.matrix
|
* @description: LocalCache
|
* @data: 2021-10-25 14:03
|
**/
|
public class LocalCacheTest {
|
|
@Test
|
public void testNoticeTask() throws IOException, InterruptedException {
|
LocalCache.save("name","jyy",1000*3);
|
System.out.println("放入对象");
|
Assert.assertNotNull(LocalCache.get("name"));
|
Thread.sleep(1000*5);
|
Assert.assertNull(LocalCache.get("name"));
|
}
|
|
}
|