We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I think it would be nice if I could determine the expiration in more various ways or dynamically .
def get_expire(): # return seconds ... @ring.lru(expire_callback=get_exprie()) def foo(): return "foo"
expired_at can be cron expressoin or time or datetime.
I think cron expression is very nice.
time and datetime is ambiguous, because it cannot be repeated and can only be used once.
@ring.lru(expired_at=expired_at) def foo(): return "foo"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I think it would be nice if I could determine the expiration in more various ways or dynamically .
use expire callback
use expired_at
expired_at can be cron expressoin or time or datetime.
I think cron expression is very nice.
time and datetime is ambiguous, because it cannot be repeated and can only be used once.
The text was updated successfully, but these errors were encountered: