Visit ComfyUI Online for ready-to-use ComfyUI environment
Manage and optimize cache by clearing specific entries based on key for improved system efficiency.
The easy clearCacheKey
node is designed to help you manage and optimize your cache by allowing you to clear specific cache entries based on a given key. This node is particularly useful when you need to free up memory or ensure that outdated or unnecessary data is removed from the cache. By providing a straightforward method to target and clear specific cache entries, this node helps maintain the efficiency and performance of your system. Whether you are working with large datasets or frequently updating models, the easy clearCacheKey
node ensures that your cache remains clean and relevant, thereby enhancing the overall workflow.
This parameter acts as a placeholder and is always set to *
. It is used internally to match any input and does not require any specific value from you. Its primary function is to ensure that the node can be executed without any mandatory input values.
The cache_key
parameter specifies the key of the cache entry you wish to clear. By providing the exact key, you can target and remove specific entries from the cache, ensuring that only the relevant data is retained. This parameter accepts a string value, and the default value is *
, which means all cache entries will be cleared if no specific key is provided. Using this parameter effectively can help you manage your cache more precisely and avoid unnecessary memory usage.
This optional parameter allows you to specify a unique identifier for the cache entry. It can be useful when you have multiple entries with similar keys but need to distinguish between them. If not provided, the node will operate based on the cache_key
alone. This parameter accepts a string value and can be left empty if not needed.
Another optional parameter, extra_pnginfo
, allows you to include additional metadata or information related to the cache entry. This can be useful for debugging or tracking purposes. Like unique_id
, this parameter accepts a string value and can be left empty if not required.
The easy clearCacheKey
node does not produce any output parameters. Its primary function is to perform an action (clearing cache entries) rather than generating data or results. Once the specified cache entries are cleared, the node completes its execution without returning any values.
cache_key
parameter to target specific cache entries that you want to clear, ensuring that only unnecessary data is removed.unique_id
parameter to distinguish between them and clear the correct entry.extra_pnginfo
parameter for better tracking and debugging of cache entries.<cache_key>
cache_key
does not exist in the cache.cache_key
you provide matches an existing entry in the cache. Double-check for any typos or incorrect values.Key <cache_key> does not exist
cache_key
was not found in the cache.cache_key
is correct and exists in the cache. If necessary, use the unique_id
parameter to further specify the cache entry.cache_key
and optional parameters (unique_id
, extra_pnginfo
) are correctly specified. If using the default *
value, confirm that there are cache entries to be cleared.© Copyright 2024 RunComfy. All Rights Reserved.