简体   繁体   English

如何在 Angular 应用程序中实施 AWS Redis Session

[英]How to Implement AWS Redis Session in Angular app

I want to implement AWS redis session in Angular app to store login token in session key that can be used across pods, I am using sessionStorage currently but need to use AWS redis session Can anyone please suggest how to do that? I want to implement AWS redis session in Angular app to store login token in session key that can be used across pods, I am using sessionStorage currently but need to use AWS redis session Can anyone please suggest how to do that?

Sample Java code to connect to Elasticache can be found here: https://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/AutoDiscovery.Using.ModifyApp.Java.html It shows how to use Memcache but you can modify the code to use Redis as per your needs. Sample Java code to connect to Elasticache can be found here: https://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/AutoDiscovery.Using.ModifyApp.Java.html It shows how to use Memcache but you can根据您的需要修改代码以使用 Redis。

As far as the Angular is concerned.就 Angular 而言。 Generally Redis is not used with frontend technologies.通常 Redis 不与前端技术一起使用。 Redis is used as cache layer for DB or other integrations. Redis 用作数据库或其他集成的缓存层。 You can use to cache the API calls data by your Angular application.您可以使用 Angular 应用程序缓存 API 调用数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM