本文整理了Java中redis.clients.jedis.Jedis.bgrewriteaof()
方法的一些代码示例,展示了Jedis.bgrewriteaof()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Jedis.bgrewriteaof()
方法的具体详情如下:
包路径:redis.clients.jedis.Jedis
类名称:Jedis
方法名:bgrewriteaof
暂无
代码示例来源:origin: spring-projects/spring-data-redis
@Override
public void bgReWriteAof() {
try {
if (isPipelined()) {
pipeline(connection.newStatusResult(connection.getRequiredPipeline().bgrewriteaof()));
return;
}
if (isQueueing()) {
transaction(connection.newStatusResult(connection.getRequiredTransaction().bgrewriteaof()));
return;
}
connection.getJedis().bgrewriteaof();
} catch (Exception ex) {
throw convertJedisAccessException(ex);
}
}
代码示例来源:origin: io.leopard/leopard-redis
@Override
public Object execute(Jedis jedis) {
return jedis.bgrewriteaof();
}
});
代码示例来源:origin: mindwind/craft-atom
private String bgrewriteaof0(Jedis j) {
return j.bgrewriteaof();
}
代码示例来源:origin: io.leopard/leopard-redis
@Override
public String bgrewriteaof() {
return jedis.bgrewriteaof();
}
代码示例来源:origin: penggle/jedis-ms-sentinel
public String bgrewriteaof() {
return master.bgrewriteaof();
}
代码示例来源:origin: com.netflix.spinnaker.kork/kork-jedis
@Override
public String bgrewriteaof() {
String command = "bgrewriteaof";
return instrumented(command, () -> delegated.bgrewriteaof());
}
代码示例来源:origin: io.enoa/nosql-redis
default String bgrewriteaof() {
return this.run((jedis, serializer) -> jedis.bgrewriteaof());
}
代码示例来源:origin: org.nutz/nutz-integration-jedis
/**
* Rewrite the append only file in background when it gets too big. Please for detailed
* information about the Redis Append Only File check the <a
* href="http://code.google.com/p/redis/wiki/AppendOnlyFileHowto">Append Only File Howto</a>.
* <p>
* BGREWRITEAOF rewrites the Append Only File in background when it gets too big. The Redis Append
* Only File is a Journal, so every operation modifying the dataset is logged in the Append Only
* File (and replayed at startup). This means that the Append Only File always grows. In order to
* rebuild its content the BGREWRITEAOF creates a new version of the append only file starting
* directly form the dataset in memory in order to guarantee the generation of the minimal number
* of commands needed to rebuild the database.
* <p>
*
* @return Status code reply
*/
public String bgrewriteaof() {
Jedis jedis = getJedis();
try {
return jedis.bgrewriteaof();
} finally {Streams.safeClose(jedis);}
}
代码示例来源:origin: org.springframework.data/spring-data-redis
@Override
public void bgReWriteAof() {
try {
if (isPipelined()) {
pipeline(connection.newStatusResult(connection.getRequiredPipeline().bgrewriteaof()));
return;
}
if (isQueueing()) {
transaction(connection.newStatusResult(connection.getRequiredTransaction().bgrewriteaof()));
return;
}
connection.getJedis().bgrewriteaof();
} catch (Exception ex) {
throw convertJedisAccessException(ex);
}
}
代码示例来源:origin: apache/servicemix-bundles
@Override
public void bgReWriteAof() {
try {
if (isPipelined()) {
pipeline(connection.newStatusResult(connection.getRequiredPipeline().bgrewriteaof()));
return;
}
if (isQueueing()) {
transaction(connection.newStatusResult(connection.getRequiredTransaction().bgrewriteaof()));
return;
}
connection.getJedis().bgrewriteaof();
} catch (Exception ex) {
throw convertJedisAccessException(ex);
}
}
内容来源于网络,如有侵权,请联系作者删除!