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
I was wondering whether it would be possible to store a single entry under multiple hashes by computing multiple hashes at the same time and hard linking the content in the cache.
In some usecases it makes sense to use one hash over another, because you might want to use the hash outside of the cache, but as I understand it correctly content would be duplicated when using two hashes for the same content.
An integrity can already contain multiple hashes but I think the API doesnt offer support to store/calculate multiple hashes.
The text was updated successfully, but these errors were encountered:
The easiest way to do this is to do your own wrapper around the index functions and create mock index entries and store the different variants in their metadata field. Your function can then return the appropriate variant from there. Does that make sense? I'm otherwise not sure how I feel about adding this kind of functionality directly to cacache, esp since it's so easy to roll your own with the tools that are there already.
I was wondering whether it would be possible to store a single entry under multiple hashes by computing multiple hashes at the same time and hard linking the content in the cache.
In some usecases it makes sense to use one hash over another, because you might want to use the hash outside of the cache, but as I understand it correctly content would be duplicated when using two hashes for the same content.
An integrity can already contain multiple hashes but I think the API doesnt offer support to store/calculate multiple hashes.
The text was updated successfully, but these errors were encountered: