-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Description
Hi, I'm trying to set a TTL when saving an individual record, but the AeroMapper.save() function overrides it. How can I save a record with a different TTL than the default?
This is what I'm trying to do:
WritePolicy policy = new WritePolicy(client.writePolicyDefault);
policy.expiration = 10;
mapper.save(policy, shortLink);This is the offending code:
java-object-mapper/src/main/java/com/aerospike/mapper/tools/AeroMapper.java
Lines 229 to 231 in a0d1164
| if (ttl != null) { | |
| writePolicy.expiration = ttl; | |
| } |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels