Java 如何在Aerospike Spring数据中使用CAS感知策略保存文档
有谁能告诉我如何在Spring Data Aerospike中使用CAS感知策略保存文档,以便它使用记录的生成来使用EXPECT_GEN_EQUAL生成策略更新文档 我试过这个:Java 如何在Aerospike Spring数据中使用CAS感知策略保存文档,java,spring,spring-data-jpa,aerospike,Java,Spring,Spring Data Jpa,Aerospike,有谁能告诉我如何在Spring Data Aerospike中使用CAS感知策略保存文档,以便它使用记录的生成来使用EXPECT_GEN_EQUAL生成策略更新文档 我试过这个: Customer customer = customerRepositoryTest.findOne("335672888"); customer.setFieldX(some value) customerRepository.save(customer); 但我发现Aerospike Spring数据始终使用无生
Customer customer = customerRepositoryTest.findOne("335672888");
customer.setFieldX(some value)
customerRepository.save(customer);
但我发现Aerospike Spring数据始终使用无生成策略,因此在调用save
时,它总是忽略版本属性(Generation)并覆盖记录
有人有主意吗?谢谢大家! 您应该将
spring数据aerospike
依赖项与groupId
com.aerospike一起使用,因为它包含对项目贡献的所有修复:
2.2.0.版本
已经支持Spring Boot 2.2。
2.1.1.版本
适用于弹簧护套2.1