Hi, what is the eviction policy of task cache (lik...
# ask-community
r
Hi, what is the eviction policy of task cache (like LRU etc)? Thanks
n
hi @Revital Eres - you can customize this significantly but by default its a composite key of • flow run ID • parameters • task source code https://docs.prefect.io/v3/how-to-guides/workflows/cache-workflow-steps#how-to-cache-workflow-step-outputs
r
@Nate Thanks I was referring to the eviction policy while you mentioned the how the keys are calculated.. I did not find any refence to when the elements are deleted from the cache. Thanks
n
we don't delete from your blob/disk, the expiration just determines when the server stops looking for a result to load at that key
r
OK Thanks