@@ -373,7 +373,7 @@ def get_items_hashes(func, items=None):
373373 return [Cache .hash (item ) for item in items ]
374374
375375 @staticmethod
376- def _get_cache_modified_time (func , key_data ):
376+ def _get_item_modified_time (func , key_data ):
377377 """
378378 Private function to get the timestamp when cache was stored.
379379 Returns the modification time of the cache file as a datetime object.
@@ -391,7 +391,7 @@ def _get_cache_modified_time(func, key_data):
391391 return datetime .fromtimestamp (timestamp )
392392
393393 @staticmethod
394- def is_cache_older_than (func , key_data , days = 0 , seconds = 0 , microseconds = 0 ,
394+ def is_item_older_than (func , key_data , days = 0 , seconds = 0 , microseconds = 0 ,
395395 milliseconds = 0 , minutes = 0 , hours = 0 , weeks = 0 ):
396396 """
397397 Check if cached item is older than the specified time period.
@@ -427,7 +427,7 @@ def is_cache_older_than(func, key_data, days=0, seconds=0, microseconds=0,
427427 )
428428
429429 # Get cache timestamp
430- cache_time = Cache ._get_cache_modified_time (func , key_data )
430+ cache_time = Cache ._get_item_modified_time (func , key_data )
431431
432432 # Compare with current time
433433 age = datetime .now () - cache_time
0 commit comments