DesensitizedUtil增加对IPv4和IPv6支持

This commit is contained in:
Looly
2023-01-17 17:07:18 +08:00
parent b958f9f9d2
commit 9183a9100e
4 changed files with 118 additions and 35 deletions

View File

@@ -61,6 +61,13 @@ public class CacheTest {
Assert.assertNull(value3);
}
@Test
public void lfuCacheTest2(){
Cache<String, String> lfuCache = CacheUtil.newLFUCache(3);
final String s = lfuCache.get(null);
Assert.assertNull(s);
}
@Test
public void lruCacheTest(){
Cache<String, String> lruCache = CacheUtil.newLRUCache(3);