You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Often, after calculating a method, we know that we invalidated other cached values... A good example would be ORM, an instance of a record in the database needs cached elements and cached complex function dependent on data of the records, but would then gets invalidated when some write function is called.
This is a little bit like a reverse key: it's not anymore the responsibility of the cache to detect invalidation but foreign functions that could clear the cache. Notice that it's maybe a lesser way to tackle invalidated cache in most situation compared to find the correct key lambda, and I'd like to find a better scenario where it's clear that the key function can't handle it in an elegant way.
Often, after calculating a method, we know that we invalidated other cached values... A good example would be ORM, an instance of a record in the database needs cached elements and cached complex function dependent on data of the records, but would then gets invalidated when some write function is called.
This is a little bit like a reverse key: it's not anymore the responsibility of the cache to detect invalidation but foreign functions that could clear the cache. Notice that it's maybe a lesser way to tackle invalidated cache in most situation compared to find the correct key lambda, and I'd like to find a better scenario where it's clear that the
key
function can't handle it in an elegant way.The text was updated successfully, but these errors were encountered: