CacheManagerService

This commit is contained in:
redkale
2023-12-11 18:34:03 +08:00
parent d6b9402ce0
commit ce5125db9c
5 changed files with 23 additions and 23 deletions

View File

@@ -6,7 +6,7 @@ package org.redkale.test.caching;
import java.time.Duration;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.redkale.caching.CacheEngine;
import org.redkale.caching.CacheManagerService;
import org.redkale.convert.json.JsonConvert;
import org.redkale.source.CacheMemorySource;
import org.redkale.util.Utility;
@@ -26,7 +26,7 @@ public class CachingTest {
public void run() throws Exception {
CacheMemorySource remoteSource = new CacheMemorySource("remote");
remoteSource.init(null);
CacheEngine cache = CacheEngine.create(remoteSource);
CacheManagerService cache = CacheManagerService.create(remoteSource);
cache.init(null);
Duration expire = Duration.ofMillis(490);
cache.localSetString("user", "name:haha", "myha", expire);

View File

@@ -4,7 +4,7 @@
package org.redkale.test.scheduling;
import org.junit.jupiter.api.Test;
import org.redkale.scheduling.ScheduleEngine;
import org.redkale.scheduling.ScheduleManagerService;
import org.redkale.util.Utility;
/**
@@ -20,7 +20,7 @@ public class ScheduleTest {
@Test
public void run() throws Exception {
ScheduleEngine factory = ScheduleEngine.create(null);
ScheduleManagerService factory = ScheduleManagerService.create(null);
ScheduleService service = new ScheduleService();
factory.schedule(service);
Utility.sleep(3000);