mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-05-17 11:47:26 +08:00
fix redis counter test error
This commit is contained in:
@@ -1,13 +1,10 @@
|
||||
package org.hswebframework.web.counter.redis;
|
||||
|
||||
import org.hswebframework.web.concurrent.counter.Counter;
|
||||
import org.hswebframework.web.concurrent.counter.CounterManager;
|
||||
import org.junit.Assert;
|
||||
import org.redisson.Redisson;
|
||||
import org.redisson.config.Config;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
/**
|
||||
* TODO 完成注释
|
||||
*
|
||||
@@ -18,7 +15,7 @@ public class RedissonCounterTest {
|
||||
public static void main(String[] args) throws InterruptedException {
|
||||
Config config = new Config();
|
||||
// config.setUseLinuxNativeEpoll(true);
|
||||
config.useSingleServer().setAddress("127.0.0.1:6379");
|
||||
config.useSingleServer().setAddress("redis://127.0.0.1:6379");
|
||||
Redisson redisson = (Redisson) Redisson.create(config);
|
||||
|
||||
CounterManager counterManager = new RedissonCounterManager(redisson);
|
||||
|
||||
Reference in New Issue
Block a user