Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.1k views
in Technique[技术] by (71.8m points)

yii2 fileCache 存储array时需要进行json_encode吗?

在php将array利用fileCache缓存组件存入文件,需要时再取出array处理,是最常见的操作。

现在工作中处理时经常使用json\_encode,json\_decode对出入缓存增加额外的操作,想知道这样做是必要的吗?有什么好处?或者说fileCache没有对要缓存的数据做序列化工作吗?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...