How to save documents with CAS aware policy in Aerospike Spring Data

Could anyone show me how we could save documents with CAS aware policy in Spring Data Aerospike so that it uses the generation from the record to update the document with EXPECT_GEN_EQUAL generation policy?

I tried this:

Customer customer = customerRepositoryTest.findOne("335672888");
customer.setFieldX(some value)
customerRepository.save(customer);

But I found out the Aerospike Spring Data always uses the NONE Generation Policy that it always ignores the version property (generation) and overwrites the record when calling save .

Anyone got an idea? Thank you!