Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 redis 作为 ember-data 数据存储的后端?看起来我可能需要一个自定义适配器?
由于 Ember 是一个客户端框架,我会说你需要两个适配器(服务器端和客户端)。
事实上,Redis 并非旨在通过非安全网络直接访问。因此,如果您的客户端在浏览器中运行,那么您绝对需要在客户端和 Redis 之间建立一个服务器端中间层。
一种可能性是将Webdis包用作服务器端适配器,然后调整 Ember 数据中提供的 JSON/REST客户端适配器以符合 Webdis 类 REST 协议。