Skip to content

Commit

Permalink
Testing: Add type annotations to cache.py; #6588
Browse files Browse the repository at this point in the history
  • Loading branch information
rdimaio authored and bari12 committed Apr 17, 2024
1 parent deb0b1f commit 3482306
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 3482306

Please sign in to comment.