# Save data after TTL expires

**URL:** https://discuss.aerospike.com/t/save-data-after-ttl-expires/5854
**Category:** Requests
**Tags:** expiration
**Created:** [January 14, 2019, 11:20am UTC](https://discuss.aerospike.com/t/save-data-after-ttl-expires/5854 "2019-01-14T11:20:12Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Geetika\_Sharma](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@Geetika\_Sharma](https://discuss.aerospike.com/u/Geetika_Sharma)
#### Post date: [January 14, 2019, 11:20am UTC](https://discuss.aerospike.com/t/save-data-after-ttl-expires/5854/1 "2019-01-14T11:20:12Z")

</div>

Hi Team,

How can I save/move data once TTL expires? I have read that data is deleted once TTL expires and cannot be retrieved as that is the functionality. Agreed with that But is there a way with which we can save or move the data to involatile memory? e.g If in case, another application is not able to read within 60 seconds due to Network latency or any other reason, then is there a way we can save data?

Thank You in advance

---

<div class="post-metadata">

### Author: ![kporter](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/kporter/32/515_2.png) [@kporter](https://discuss.aerospike.com/u/kporter)
#### Post date: [January 14, 2019, 10:20pm UTC](https://discuss.aerospike.com/t/save-data-after-ttl-expires/5854/2 "2019-01-14T22:20:36Z")

</div>

Presently there isn’t a way to move data on expiration/eviction.

---

<div class="post-metadata">

### Author: ![Geetika\_Sharma](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@Geetika\_Sharma](https://discuss.aerospike.com/u/Geetika_Sharma)
#### Post date: [January 15, 2019, 4:01am UTC](https://discuss.aerospike.com/t/save-data-after-ttl-expires/5854/3 "2019-01-15T04:01:12Z")

</div>

> [@kporter](#):
>
> Presently there isn’t a way to move data on expiration/eviction.

Ok. Thanks for reply.

---

<div class="post-metadata">

### Author: ![Geetika\_Sharma](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@Geetika\_Sharma](https://discuss.aerospike.com/u/Geetika_Sharma)
#### Post date: [January 15, 2019, 4:56am UTC](https://discuss.aerospike.com/t/save-data-after-ttl-expires/5854/4 "2019-01-15T04:56:09Z")

</div>

Is there a way we can get notification before the TTL is about to expire? That ways, we’ll be able to move Data to our DB through code say in C or Java.

---

<div class="post-metadata">

### Author: ![kporter](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/kporter/32/515_2.png) [@kporter](https://discuss.aerospike.com/u/kporter)
#### Post date: [January 15, 2019, 9:52pm UTC](https://discuss.aerospike.com/t/save-data-after-ttl-expires/5854/5 "2019-01-15T21:52:17Z")

</div>

You could do a scan with a [predicate filter](https://www.aerospike.com/docs/guide/predicate.html) searching for only records that would expire within the [next period of time]. For records that aren’t nearing expiration, only the in memory meta data will be read so these scans should be quick.
