Anyone successfully integrated serialization for DataLoader::with_cache ? #1723
Unanswered
matt-deboer
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm looking at ways to integrate an external cache (or really any cache where the storage/retrieval requires some sort of serialization traits--e.g., serde, bitcode, rkyv, etc.) for DataLoader, but am having trouble with the bounds for the CacheStorage trait.
Redis cache for dataloaders is one route I'm attempting to implement.
I've been fiddling with attempts at specialization to have alternate implementation if the Key, Value types have implemented certain traits, but not having any luck there.
Maybe I'm missing something, but is it possible to implement custom caching for DataLoader which requires serialization? If anyone has an example, that would be much appreciated.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions