Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expire cached entries after ttl? #8

Open
jpmens opened this issue Jul 23, 2024 · 1 comment
Open

Expire cached entries after ttl? #8

jpmens opened this issue Jul 23, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@jpmens
Copy link
Owner

jpmens commented Jul 23, 2024

ckrey writes:

Just noticed the Hotel has be renamed years ago. We introduced OTR_CLEAN_AGE in recorder, but nothing similar for revgeo

@jpmens jpmens added the enhancement New feature or request label Jul 23, 2024
@jpmens
Copy link
Owner Author

jpmens commented Jul 23, 2024

We'd need to add a timestamp to the stored data. Upon query, check age of tst and if older than <configured ttl>, expire the entry and re-query.

    {
        "lat": 47.79644966125488,
        "lon": 13.3018684387207,
        "ghash": "u23rytn4",
        "village": "Dorfplatz, 5330 Brunn, Austria",
        "cc": "AT",
        "tzname": "Europe/Vienna"
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant