Find answers from the community

s
F
Y
a
P
Updated last month

okey, so i have a pipeline with a redis

okey, so i have a pipeline with a redis cache, anyone know how i can remove a document from the cache ? without removing the whole cache ?
L
h
7 comments
Redis cache or redis docstore?

Not really a way to remove a specific document in the hash -- each entry in the cache is hash(transform_step + all input nodes) -> output nodes
With that kind of hash structure, there is no way to "remove" a document
Okey,hmm because it stores a copy of the whole document 😦
Iam using the pipeline to only use the cache then i feed the ”new” nodes i to a seperate chain where i process it
Maybe i can rip apart the run transformations func to return the hash and identify files in the cache that way store them in a seperate hash with file_id has key and hash as value
you definitely could -- I'm not sure if its worth the trouble or not though 🤔 But up to you!
If its worth it, i dont know yet, iam probably just reinventing another wheel…
Add a reply
Sign up and join the conversation on Discord