CachedLocalSource

This commit is contained in:
redkale
2024-09-11 16:51:33 +08:00
parent 2a8bda69e5
commit 12a39ac405
2 changed files with 20 additions and 6 deletions

View File

@@ -59,7 +59,7 @@ public class CachedManagerTest {
manager.localGetSet("group", "key2", CachingBean.class, true, 2, expire, () -> new CachingBean("v2", "r2"));
Utility.sleep(2);
manager.localGetSet("group", "key3", CachingBean.class, true, 2, expire, () -> new CachingBean("v3", "r3"));
Assertions.assertEquals(2, manager.getLocalSource().getKeyCount("group"));
Assertions.assertEquals(2, manager.getLocalSource().getSize("group"));
}
@Test