提交 84fc48c8 authored 作者: Thomas Mueller's avatar Thomas Mueller

The scan-resistant cache type "TQ" (two queue) is again available. To use it,…

The scan-resistant cache type "TQ" (two queue) is again available. To use it, append ;CACHE_TYPE=TQ to the database URL.
上级 382e2b7e
...@@ -65,7 +65,7 @@ public class TestCache extends TestBase implements CacheWriter { ...@@ -65,7 +65,7 @@ public class TestCache extends TestBase implements CacheWriter {
for (int i = 0; i < 10; i++) { for (int i = 0; i < 10; i++) {
prep.setInt(1, i); prep.setInt(1, i);
r.nextBytes(buff); r.nextBytes(buff);
prep.setBinaryStream(2, new ByteArrayInputStream(buff)); prep.setBinaryStream(2, new ByteArrayInputStream(buff), -1);
prep.execute(); prep.execute();
} }
stat.execute("create table if not exists test(id int primary key, data varchar)"); stat.execute("create table if not exists test(id int primary key, data varchar)");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论