Skip to content

Commit

Permalink
Testing: Add type annotations to cache.py; rucio#6588
Browse files Browse the repository at this point in the history
  • Loading branch information
rdimaio committed Mar 27, 2024
1 parent bed3f05 commit 20300e2
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit 20300e2

Please sign in to comment.