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
So I'm running into stale data issues as per the warning in the readme.
I would like to just invalidate / not even store the result if a fetch_by_some_attribute returns nil.
Failing that, I would like to invalidate the cache by doing IdentityCache.cache.clear(some_key).
But how do I get the key from
Model.fetch_by_some_attribute(['green', 'red'])
if it returns nil?
The text was updated successfully, but these errors were encountered:
So I'm running into stale data issues as per the warning in the readme.
I would like to just invalidate / not even store the result if a fetch_by_some_attribute returns nil.
Failing that, I would like to invalidate the cache by doing IdentityCache.cache.clear(some_key).
But how do I get the key from
Model.fetch_by_some_attribute(['green', 'red'])
if it returns nil?
The text was updated successfully, but these errors were encountered: