Methods for caching PHP objects to file?

后端 未结 8 964
时光取名叫无心
时光取名叫无心 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.

提交回复
热议问题