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

cache_control_ttl can't be used directly with cache api #219

Closed
sergey-burkov-trailstone opened this issue May 6, 2024 · 1 comment
Closed
Labels
bug Something isn't working wait for release

Comments

@sergey-burkov-trailstone

Has to wrap it with ttl_to_seconds, e.g.

        await cache.set_many(
            {f"tsds:catalogue:{tsid}": info for tsid, info in catalog.items()},
            expire=ttl_to_seconds(
                cache_control_ttl(CACHEWS_DEFAULT_TTL), with_callable=True
            ),
        )
@Krukov
Copy link
Owner

Krukov commented May 12, 2024

Fixed in 7.1.0, please recheck it )

@Krukov Krukov closed this as completed May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wait for release
Projects
None yet
Development

No branches or pull requests

2 participants