From 20300e2d5db09ab1bb849121ad759a222b975eee Mon Sep 17 00:00:00 2001 From: rdimaio Date: Wed, 27 Mar 2024 12:10:09 +0100 Subject: [PATCH] Testing: Add type annotations to cache.py; #6588 --- lib/rucio/common/cache.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/rucio/common/cache.py b/lib/rucio/common/cache.py index 16bbb57c26..9d2c279da0 100644 --- a/lib/rucio/common/cache.py +++ b/lib/rucio/common/cache.py @@ -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 @@ -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 """