question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Expiration date and data usage limit for keys

See original GitHub issue

It would be a good feature to have the ability to limit keys by date and data usage.

Right now I’m using key names like this user_<LABEL>_<EXP-DATE>_<X>GB And I have a small python script which uses the API and runs every minute with cron to parse the key names and compare their usage metrics to their usage limit in the name, and delete the key if their expiration date or usage limit is passed…

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:5
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
aliabadi-mehrancommented, May 25, 2018

Hi @rmin Could you share your script? Is there a solution to limit concurrent users on the same key?

0reactions
bemasccommented, Apr 26, 2022

The Outline Server now supports data usage limits for keys: here, so I think this is done 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Data limits - Help
No, a user's limit always includes the past 30 days of data use. If you'd like to reset a user's usage, you can...
Read more >
Memcache maximum key expiration time - Stack Overflow
But, as you say, if you're setting key expiration to an amount of time rather than a date, the maximum is 2,592,000 seconds,...
Read more >
Improving key expiration in Redis - Twitter Blog
After a lot of time spent debugging and testing we were able to reduce Redis's memory use in some of our clusters by...
Read more >
About Azure Key Vault secrets - Microsoft Learn
The maximum length of this field is 255 characters. The suggested usage is as a hint for interpreting the secret data. For instance,...
Read more >
Deploy keys - GitLab Docs
Valid as long as it's registered and enabled. Can be given an expiration date. Registry access, Cannot access a package registry. Can read...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found