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

Using mongo in golang, Expire Documents after a Specified Number of Seconds?

I am trying something simple using the mongo-go-driver. I insert some datas in a collection, and I want them to be automaticaly deleted after a number of seconds. I have read the following documentation :…
yayou
  • 41
  • 6
3
votes
2 answers

MongoDB index grows on update

We are using AWS DocumentDB v3.6.0. We want to use MongoDB TTL index functionality to remove items after a period of time. Items are frequently updated until a special event occurs. Therefore we need to update the ttl field…
Baumjamin
  • 31
  • 2
3
votes
2 answers

Writing a TTL decorator in Python

I'm trying to write a TTL decorator in python. Basically I give it raise an exception if the function doesn't answer in the selected time. You can find the thead2 snippets on http://sebulba.wikispaces.com/recipe+thread2 from thread2 import…
fulmicoton
  • 15,502
  • 9
  • 54
  • 74
3
votes
1 answer

How to put a TTL/expiration on an HSET

An HSET is like so: HSET myhash field1 "Hello" is there a way to put an expiration/TTL on the "field1" key. It's trivial to put an expiration on myhash tmk, but I don't know how to put a TTL on key of a…
user7898461
3
votes
1 answer

Pymongo and TTL wrong expiration time

I want to save data into MongoDB using pymongo, and it need to expire automatically after a month (maybe less) if noone removes it before (another script will perform a read + delete). At the moment, I'm testing the TTL with expireAfterSeconds, and…
Ju Gaertner
  • 33
  • 1
  • 6
3
votes
2 answers

How to run Teraterm and TTL file using Batch file?

From Tera Term. To start MACRO (TTL), select the [Control] Macro command and then the macro file in the Open Macro dialog box. The question is how to write command inside batch file, to call macro file and run automatically by just opening batch…
wan cine
  • 61
  • 1
  • 2
  • 9
3
votes
2 answers

c# active directory temporary groupmembership?

Is there any way to add a user to a group for an exact time and then delete the user from the group automatically? e.g.: CN=testuser1 and CN=testgroup1 Now I want to add the CN=testuser1 to the CN=testgroup1 for 1 day. After that 1 day the user…
ov4rlrd
  • 33
  • 5
3
votes
2 answers

MongoDB TTL but to do other stuff

I have a requirement that when a date attribute field is passed, that we would like to trigger two things: to move the record to be deleted to another table. to call a function to do other actions. I understand TTL is only to delete a record when…
Bluetoba
  • 885
  • 1
  • 9
  • 16
3
votes
1 answer

Trigger on TTL deletion Cassandra

I'm currently building an application in Java that uses a Cassandra database, and I would like to have a table that takes in data as it expires in another Cassandra table. Is there a way to implement a Trigger that can do this?
tbang3
  • 31
  • 2
3
votes
1 answer

Mass insert on Cassandra from Spark with different TTL

I want to insert huge volume of data from Spark into Cassandra. The data has a timestamp column which determines ttl. But, this differs for each row. My question is, how can I handle ttl while inserting data in bulk from Spark. My current…
3
votes
1 answer

Why would my java program send multicast packets with a TTL of 1?

I have a java client program that uses mdns with service discovery to find its associated server. After much testing on a single network with Windows, Fedora 10, and Ubuntu 8.10, we delivered a test build to a customer. They report that the client…
Jay R.
  • 31,911
  • 17
  • 52
  • 61
3
votes
1 answer

Azure queue max TTL

Maybe someone can explain me why Azure queues has a max TTL of 7 days? I am used to work with NServicebus where events (messages) would be an important part of a business process and this of course may never be deleted. I really like the way queues…
Stig
  • 1,974
  • 2
  • 23
  • 50
3
votes
2 answers

How does the data overhead of multiple columns with TTL in Cassandra work?

In the documentation for expiring data for Cassandra (here) it is mentioned that Expiring data has an additional overhead of 8 bytes in memory and on disk (to record the TTL and expiration time) compared to standard data. If one sets a TTL…
Filipe Freire
  • 823
  • 7
  • 21
3
votes
1 answer

How to modify the TTL of all records set with a ttl of -1 in aerospike?

I want to modify the TTL of all the records that were accidentally set with a 'never expire' TTL (-1 in the client). How would I do that?
Ronen Botzer
  • 6,951
  • 22
  • 41
3
votes
2 answers

Override TTL Cassandra

I am using a Cassandra database for my application, and I am setting a TTL per request. For testing purpose I am using another database (same schema, but in local) and I am willing to keep data and I was wondering if there is a way to override the…
M. Afathi
  • 65
  • 1
  • 4