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

Testing: Add type annotations to cache.py; #6588 #6608

Merged
merged 1 commit into from Apr 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/rucio/common/cache.py
Expand Up @@ -23,6 +23,8 @@
from collections.abc import Callable
from typing import Optional

from dogpile.cache.region import CacheRegion

CACHE_URL = config_get('cache', 'url', False, '127.0.0.1:11211', check_config_table=False)

ENABLE_CACHING = True
Expand All @@ -47,7 +49,7 @@ def make_region_memcached(
expiration_time: int,
function_key_generator: "Optional[Callable]" = None,
memcached_expire_time: "Optional[int]" = None
):
) -> "CacheRegion":
"""
Make and configure a dogpile.cache.pymemcache region
"""
Expand Down