[英]Does AWS lambda data stored on redis remain after finish lambda function?
I want to use AWS lambda function with redis. But I concern that when lambda function finish then data on redis are gone.我想将 AWS lambda function 与 redis 一起使用。但我担心当 lambda function 完成时,redis 上的数据就消失了。
The lambda TTL is 15 minutes. lambda TTL 为 15 分钟。 If I set TTL of data that stored on redis as 20 minutes will the data stay or gone?如果我将存储在 redis 上的数据的 TTL 设置为 20 分钟,数据会保留还是消失?
As noted in the comments, Redis is nominally outside of the Lambda container.如评论中所述,Redis名义上在 Lambda 容器之外。 Unless you are doing somethign really crazy like using a custom image with a redis cache inside it for your lambda, then when your lambda container is de-commed your redis cache - not being involved in that decom - will remain the same.除非你正在做一些非常疯狂的事情,比如为你的 lambda 使用一个带有 redis 缓存的自定义图像,然后当你的 lambda 容器被取消时,你的 redis 缓存 - 不参与该 decom - 将保持不变。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.