更新时间:2024-10-23 GMT+08:00
pipeline功能使用示例
pipeline功能使用:
- 需要返回值示例:
@Autowired private MultiZoneClient client; public void Demo() { client.executePipeline(pipeline -> { pipeline.set("devspore", "test"); pipeline.setnx("aaa", "bbb"); return pipeline.syncAndReturn(); }); }
- 不需要返回值示例:
@Autowired private MultiZoneClient client; public void Demo() { client.executePipeline(pipeline -> { pipeline.set("devspore", "test"); pipeline.setnx("aaa", "bbb"); return null; }); }
父主题: 命令参考