Methods for caching PHP objects to file?

后端 未结 8 906
时光取名叫无心
时光取名叫无心 2020-12-24 12:42

In ASPNET, I grew to love the Application and Cache stores. They\'re awesome. For the uninitiated, you can just throw your data-logic objects into them, and hey-presto, you

相关标签:
8条回答
  • 2020-12-24 13:37

    Serializing is quite safe and commonly used. There is an alternative however, and that is to cache to memory. Check out memcached and APC, they're both free and highly performant. This article on different caching techniques in PHP might also be of interest.

    0 讨论(0)
  • 2020-12-24 13:37

    Some hosting places may have APC compiled in.. That would allow you to store the objects in memory.

    0 讨论(0)
提交回复
热议问题