Res for silverstripe 4缓存

问题描述 投票:1回答:1

我正在使用SilverStripe 4.2.2。

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

php silverstripe silverstripe-4
1个回答
0
投票

[看一下pstaender/silverstripe-redis-cache,这将使SilverStripe 4和Redis的入门变得容易得多(因为它实现了CacheFactory并为SilverStripe提供了一些配置)。还不错,它也使用predis,类似于上面提到的Symfony的缓存组件。

这对我来说也是理想的,因为使用Redis的primary原因之一是要在整个集群中分布模板缓存。 🙂

© www.soinside.com 2019 - 2024. All rights reserved.