Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/CacheLibrary/CacheLibrary.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ def cache_retrieve_value(self, key: CacheKey) -> CacheValue | None:
self.cache_remove_value(key)
return None

logger.info(f"Value '${key}' expires {entry['expires']}")
return entry["value"]

@keyword(tags=["collection"])
Expand Down Expand Up @@ -216,9 +217,15 @@ def cache_retrieve_value_from_collection(
raise ValueError(msg)

value = values[index]

collection_size = len(values)
if remove_value:
self.cache_remove_value_from_collection(key, index=index)
collection_size -= 1

logger.info(
f"{collection_size} values remaining. Collection '{key}' expires {entry['expires']}",
)
return value

@keyword(tags=["value"])
Expand Down
Loading