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
12
votes
1 answer

How to pass TTL in Cassandra Java Driver QueryBuilder?

I am using the QueryBuilder in the Cassandra Java driver to insert some data. There seems to be no easy option to set the TTL on the row I am inserting. None of the examples on the DataStax site show an example with TTL. I suspect it has something…
Jacek Furmankiewicz
  • 1,143
  • 1
  • 13
  • 22
12
votes
2 answers

What's the benefit of mongodb's ttl collection? vs purging data from a housekeeper?

I have been thinking about using the build in TTL feature, but it's not easy to dynamically changing the expiration date. Since mongodb is using a background task purging the data. Is there any downside just coding my own purging function based on…
user2833162
  • 149
  • 1
  • 7
10
votes
1 answer

Setting DNS lookup's TimeToLive in Scala Play

I am trying to set the TimeToLive setting for DNS Lookup in my Scala-Play application. I use Play 2.5.9 and Scala 2.11.8 and follow the AWS guide. I tried the following ways: in application.conf // Set DNS lookup time-to-live to one…
10
votes
1 answer

Is it a good practice to set expire for all keys in redis

I am using redis for caching in one of my application,I need to store around 500 000 keys per day & need to set a EXPIRE for all keys. After 5 days I will be have about 2.5 million keys & I have set EXPIRE for all the keys. Is it fine to set…
10
votes
1 answer

Is TTL for Cassandra counter column family supported?

Does Cassandra support TTL for the Counter column family? Specifically we use Hector as a client to Cassandra and I didn't find any API receiving TTL as a parameter. At least HFactory.createCounterColumn doesn't have TTL argument.
VladiF
  • 187
  • 2
  • 6
9
votes
1 answer

Dynamodb TTL 24hours

Hi I am wonder about how to set the time to live in dynamo db. I understand that I have to create a field, could be called ttl and set the value to be deleted, but in which format innodejs do I have to save to use for the ttl field for 20 or 24…
Pablo Alejandro
  • 591
  • 2
  • 10
  • 19
9
votes
3 answers

TTL vs default_time_to_live which one is better and why?

Requirement is simple: we have to create a table which will have only 24 hours of data. We have two options Defile TTL with each insert Make table property default_time_to_live for 24 hours. I have general idea about both the things but…
theone
  • 113
  • 1
  • 5
9
votes
1 answer

Attaching a TTL field with every log sent via logstash to Elasticsearch

Summary: I want to attach a TTL field with the logs in logstash and send them over to the Elastic search. I have already gone through the documentation but could not get much of it, since it is not very clear. This is my config file in…
user2359303
  • 261
  • 2
  • 7
  • 15
8
votes
2 answers

Java Multicast Time To Live is always 0

I have a problem with setting the TTL on my Datagram packets. I am calling the setTTL(...) method on the packet before sending the packet to the multicastSocket but if I capture the packet with ethereal the TTL field is always set to 0
ajerebek
7
votes
1 answer

What happens when Varnish Cache is full?

I'm using varnish with -s malloc,1G" It's currently 98% full. Once it completely full what will happen? Will it purge? Maybe purge old images/pages? Or better yet purge the files with least amount of hits?
Hayden
  • 361
  • 4
  • 18
7
votes
1 answer

mongodb different TTL for every document

as far i know, currently mongodb TTL are managed by expireAfterSeconds index and it's setting for all document inside a collection. so is there any built-in way to set expiration to single document ?, thankyou
7
votes
2 answers

How to set TTL on Hbase Row and Bigtable Row

I am trying to evaluate if it is possible to set a TTL on individual row in HBase or Bigtable. I know that Cassandra allows using TTL at insert. I want to find if the same is possible in HBase and in Google Cloud Bigtable. INSERT INTO test (k,v)…
7
votes
1 answer

Time to live for all messages in activemq queue

I'm new in activemq and jms and I need to set a ttl for all messages in my queue. Is there any possibility to set a ttl of all incoming messages in a queue? I only found an option "expireMessagesPeriod" for policyEntry tag, which is responsible for…
KillSwitch
  • 132
  • 2
  • 10
7
votes
2 answers

Cassandra TTL gets set to 0 on primary key if no TTL is specified on an update, but if it is, the TTL on the primary key does not change

This behavior in Cassandra seems counter-intuitive and I want to know why this is happening, and possibly work around this. Imagine I have a table with three columns: pk, the primary key, a text type, foo, a bigint, and bar, another text. insert…
2rs2ts
  • 10,662
  • 10
  • 51
  • 95
7
votes
2 answers

How to extend cache ttl (time-to-live) in django-redis?

I'm using django 1.5.4 and django-redis 3.7.1 I'd like to extend cache's ttl(time-to-live) when I retrieved it. Here is sample code from django.core.cache import cache foo = cache.get("foo) if not foo: cache.set("foo", 1, timeout=100) else: …
Chemical Programmer
  • 4,352
  • 4
  • 37
  • 51
1
2
3
39 40