Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
😞
😐
😃
Powered by
Hall
Inactive
Updated 2 months ago
0
Follow
okey, so i have a pipeline with a redis
okey, so i have a pipeline with a redis
Inactive
0
Follow
h
hansson0728
10 months ago
·
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
Share
Open in Discord
L
Logan M
10 months ago
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
L
Logan M
10 months ago
With that kind of hash structure, there is no way to "remove" a document
h
hansson0728
10 months ago
Okey,hmm because it stores a copy of the whole document 😦
h
hansson0728
10 months ago
Iam using the pipeline to only use the cache then i feed the ”new” nodes i to a seperate chain where i process it
h
hansson0728
10 months ago
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
L
Logan M
10 months ago
you definitely could -- I'm not sure if its worth the trouble or not though 🤔 But up to you!
h
hansson0728
10 months ago
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
Join on Discord