Closed younes-io closed 4 years ago
Storage is not a concern of Watson Assistant middleware.
I made pull request to botbuilder-storage-redis, but it hasn't been released yet, so I am using my own fork from private npm repository,.
@Naktibalda : the TLL is set on the key on both key creation and key update, right ?
It's the same SET call in both cases.
Yes, I realized you perform a setex
command
Hello,
As WA pushes/updates the context in Redis storage via
sendToWatson
andupdateContext
, I need a way to make sure this context TTL is only 24 hours (if the context gets updated, the TTL is updated to 24h again).I know Redis provides
EXPIRE
andSETEX
commands, but I'm not sure how to "plug it into" the Watson Botkit Middleware as it is the one storing/updating the context behind the scenes...Any ideas ?