aerospike-community / spring-data-aerospike-starters

spring-data-aerospike-starters
https://github.com/aerospike-community/spring-data-aerospike
15 stars 7 forks source link

Help: How to set the expiration of a set individually #202

Closed chenjinfeng0505 closed 1 year ago

chenjinfeng0505 commented 1 year ago

Now, we using ten sets in aerospike andinteract with it by using the this jar named spring-data-aerospike 3.5.0. We want to set an expiration time for one of the tables and the expiraton of other tables is default value. Is there a way to achieve?If possible, please provide relevant documentation.

reugn commented 1 year ago

To set a custom expiration time you can use the AerospikeTemplate#persist method, which takes the WritePolicy as a parameter.

reugn commented 1 year ago

Closing due to inactivity.