Allow custom comparison for cache invalidation #329
Unanswered
BickelLukas
asked this question in
Ideas
Replies: 1 comment 1 reply
-
Wouldn't the last write time be on the document itself? The docs suggest that. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It would be great if we could provide a custom delegate in
IImageResolver
that allows us to compare the cache and the image to find out whether the cache is still valid.Right now the comparison is done based on the lastWriteTimeUtc parameter of the ImageMetadata. This does not work if the image storage does not save the write time for files.
I am storing images in ravendb attachments. These attachments do not have a lastWriteTime, but they provide a changeVector that could be used for comparison.
Most likely this would also need to support returning and storing custom information for
ImageMetadata
Beta Was this translation helpful? Give feedback.
All reactions