PHP存储和返回静态数据的最佳方法

时间:2018-02-20 01:12:45

标签: php performance web-services caching

我开发了一些php服务,我需要以hiload模式将静态数据返回到外部应用程序。 就我而言,数据是针对城市的天气预报。 我应该如何存储和返回数据? 我想:

  1. 将数据存储在json文件中并通过apache返回,如sitename.com/data.json
  2. 我听说apache / nginx可以缓存这样的数据
  3. 将数据存储在文件中并使用php memcached。
  4. Redis的
  5. 你觉得怎么样?

0 个答案:

没有答案
相关问题