在 Parse 服务器上使用 Redis 进行缓存

在 Parse 服务器上使用 Redis 进行缓存

我在2.6.3Parse Server 上,我需要缓存查询结果,以加快速度!

我知道 Parse Server 提供了 Redis 适配器。为了开始使用 Redis,我到底要做什么?我应该安装什么模块?我应该导入或配置什么?

另外,我在 Parse 的文档中发现了这一点:Those cache adapters can be cleaned at anytime internally, you should not use them to cache data and you should let parse-server manage their data lifecycle.

他们说的是什么意思you should not use them to cache data and you should let parse-server manage their data lifecycle.?我不应该使用适配器吗?

答案1

这意味着缓存适配器仅供 Parse Server 使用,用于缓存其自己的内部数据。这意味着您编写的任何代码都不应尝试使用缓存适配器或以任何方式更改缓存。

相关内容