【问题标题】:Redis for silverstripe 4 caching用于 silverstripe 4 缓存的 Redis
【发布时间】:2019-01-14 01:41:52
【问题描述】:

我正在使用 SilverStripe 4.2.2。

想知道如何在 SilverStripe 4 中配置 Redis 以进行缓存?

【问题讨论】:

标签: php silverstripe silverstripe-4


【解决方案1】:

看看pstaender/silverstripe-redis-cache,它应该可以让您更轻松地立即开始使用 SilverStripe 4 和 Redis(因为它实现了CacheFactory 并为 SilverStripe 提供了一些配置)。还不错的是它也使用了predis,类似于上面提到的 Symfony 的缓存组件。

这对我来说也很理想,因为我使用 Redis 的 主要 原因之一是用于跨集群分布的模板缓存。 ?

【讨论】:

    猜你喜欢
    • 2018-02-13
    • 2015-10-01
    • 2015-05-29
    • 2016-10-07
    • 2017-02-27
    • 2018-02-13
    • 2014-03-22
    • 2016-04-21
    • 2017-09-28
    相关资源
    最近更新 更多