-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
156 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ public class TestAll { | |
|
||
public static void main(String[] args) { | ||
String url = "redis://[email protected]:6381"; | ||
// String url = "redis://@127.0.0.1:6379"; | ||
|
||
CamelliaRedisEnv redisEnv = new CamelliaRedisEnv.Builder() | ||
.jedisPoolFactory(new JedisPoolFactory.DefaultJedisPoolFactory(new JedisPoolConfig(), 6000)) | ||
|
@@ -24,8 +25,9 @@ public static void main(String[] args) { | |
|
||
int stringVersion = 0; | ||
int hashVersion = 0; | ||
int zsetVersion = 0; | ||
int setVersion = 0; | ||
int zsetVersion = 0; | ||
boolean zsetMscore = true; | ||
|
||
for (int i = 0; i<threads; i++) { | ||
new Thread(() -> { | ||
|
@@ -41,10 +43,8 @@ public static void main(String[] args) { | |
|
||
new Thread(() -> { | ||
while (true) { | ||
if (zsetVersion == 0) { | ||
TestZSetV0.testZSet(template); | ||
} else if (zsetVersion == 1) { | ||
TestZSetV1.testZSet(template); | ||
if (zsetVersion == 0 || zsetVersion == 1) { | ||
TestZSetV0.testZSet(template, zsetMscore); | ||
} | ||
sleep(100); | ||
} | ||
|
Oops, something went wrong.