Questions tagged [ttl]

Time to live (TTL) is a mechanism that limits the lifespan or lifetime of data in a computer or network

Time to live (TTL) is a mechanism that limits the lifespan or lifetime of data in a computer or network

Wikipedia

598 questions
5
votes
2 answers

DynamoDB TTL: when are items removed

According to the docs: DynamoDB typically deletes expired items within 48 hours of expiration. The exact duration within which an item truly gets deleted after expiration is specific to the nature of the workload and the size of the table Is there…
davids
  • 6,259
  • 3
  • 29
  • 50
5
votes
2 answers

Expire index in mongoDB based on condition

I have boolean field named pending in Mongoengine model in Python. I want the document to be removed after 1 hour only if pending=True. If I needed to remove the document after 1 hour unconditionally I would just set expire index. Is there some…
giliev
  • 2,938
  • 4
  • 27
  • 47
5
votes
1 answer

Expired mongo data with TTL index and data restores

I am busy considering using a TTL index on a collection in MongoDB and wondering what the effect would be in the event of a restore. For example, if I set the TTL on a collection to 2 days:…
Brett
  • 5,690
  • 6
  • 36
  • 63
5
votes
4 answers

Neo4j nodes or relationship supports ttl?

I am learning neo4j , i want to know that is there any way that i can create a relationship or a node that will be delete automatically after a certain period of time.
Govind Singh
  • 15,282
  • 14
  • 72
  • 106
5
votes
1 answer

Cassandra "default_time_to_live" property is not deleting data

I've created a table like: CREATE TABLE IF NOT EXISTS metrics_second( timestamp timestamp, value counter, PRIMARY KEY ((timestamp)) ) WITH default_time_to_live=1; And inserted some data like: UPDATE metrics_second SET value = value + 1 WHERE…
Mark
  • 67,098
  • 47
  • 117
  • 162
5
votes
2 answers

mongoose - change ttl for a single document

I have a very certain thing i want to accomplish, and I wanted to make sure it is not possible in mongoose/mongoDB before I go and code the whole thing myself. I checked mongoose-ttl for nodejs and several forums and didn't find quite what I…
user3366643
  • 51
  • 1
  • 2
5
votes
1 answer

Python DNS resolver and original TTL

I need to get original TTL for dns record on each query. DNS resolver shows original ttl only at first query. It shows time to reset cache on each next query. >>> answer = dns.resolver.query('www.stackoverflow.com') >>> print…
Alex Zaitsev
  • 690
  • 6
  • 17
5
votes
2 answers

Set Message TTL to one hour RabbitMQ

How can I set the message TTL ( Not the Queue ) from either the Exchange ( The exchange sends to multiple queues ) Message ( when publishing the message ) Queue ( On the queue itself but again this is the Message TTL and not the Queue TTL ) I'm…
Phill Pafford
  • 83,471
  • 91
  • 263
  • 383
5
votes
1 answer

APC user cache entries not expiring

I see 5 output each time when I run this code: "; echo $after; $later = apc_fetch('vwxyz'); //OK…
tinkerr
  • 975
  • 2
  • 14
  • 32
4
votes
1 answer

Forging packet UDP with given TTL

I'd need build up an UDP packet with Python setting a particular value of its TTL. Could anyone show me the minimal-length code to do this?
Matteo Monti
  • 8,362
  • 19
  • 68
  • 114
4
votes
2 answers

How to change TTL when using swr in Nuxt 3? (per-route preferably)

The Nuxt 3 documentations says that swr enables a static build, that lasts for a configurable TTL, however, nowhere was I able to find how exactly one would change the TTL & whether it can be set per-route. Is that possible? If so, how? I've looked…
Matej
  • 155
  • 1
  • 15
4
votes
1 answer

How to set TTL on outgoing packets in perl?

How do I set the Time-To-Live socket option in perl? What are the parameters to setsockopt(), or is there a better way to do it?
Ben Aveling
  • 842
  • 7
  • 13
4
votes
3 answers

Is it possible to invoke lambda only on item expiry from Dynamo

I have set up Dynamo table and have enabled stream and also enabled TTL (timetolive) on one of the columns. I also have one lambda which will pull entry from Dynamo Stream. Now either I add, delete, or edit, Or TTL gets expired - all this will cause…
Unbreakable
  • 7,776
  • 24
  • 90
  • 171
4
votes
1 answer

Why are there several options for Time to Live (TTL) (on ie Namecheap)

If I add a new record to my domain, I have the option to set the TTL (in minutes) to 5, 20, 30, 60 or automatic. Does the TTL actually mean the time before it goes live? Then why is there an option to wait longer for it? If not, then what does it…
Sventies
  • 2,314
  • 1
  • 28
  • 44
4
votes
2 answers

How to set the TTL attribute in the publish method of SNS in NodeJS?

I'm writing code to send an OTP message. My current parameters and publish method look as follows: params = { Message: otpMessage, MessageStructure: 'string', PhoneNumber: contactNo }; sns.publish(params, function(err, data) { if (err)…
muds
  • 518
  • 1
  • 3
  • 13