search

Home  >  Q&A  >  body text

nginx 下同时使用 redis 和 varnish 需要注意什么问题?

请教各位大神,nginx+php下,在已经使用varnish的基础上,再加个redis的话,是否有必要这样做么?加了redis的话,会带来什么好处?

谢谢!

大家讲道理大家讲道理2795 days ago651

reply all(1)I'll reply

  • PHPz

    PHPz2017-04-24 09:12:01

    Varnish or nginx caches complete pages, while redis caches raw data taken from the database, which is finally processed and synthesized by the program and fed to varnish or nginx. They are both caches, but the meaning is different.

    reply
    0
  • Cancelreply