more optimizations on write side

This commit is contained in:
Alex Tkachman
2010-09-12 12:36:16 +02:00
parent b573526a0d
commit aed824c94c
3 changed files with 157 additions and 108 deletions

View File

@@ -6,9 +6,8 @@ import java.util.Map;
import org.junit.Test;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisException;
import redis.clients.jedis.Protocol;
import redis.clients.jedis.tests.commands.JedisCommandTestBase;
import redis.clients.util.RedisOutputStream;
public class JedisTest extends JedisCommandTestBase {
@Test
@@ -24,7 +23,7 @@ public class JedisTest extends JedisCommandTestBase {
bigdata[b] = (byte) ((byte) b % 255);
}
Map<String, String> hash = new HashMap<String, String>();
hash.put("data", new String(bigdata, Protocol.CHARSET));
hash.put("data", new String(bigdata, RedisOutputStream.CHARSET));
String status = jedis.hmset("foo", hash);
assertEquals("OK", status);