T
T
technobot2014-10-27 22:30:22
Yii
technobot, 2014-10-27 22:30:22

How to store files in yii and cache them with redis?

Interested in the issue of caching in yii. It is advised to use redis. Everything seems to be clear how to work with static, dynamic content or partial caching, but what about the files of which there will be a lot? I wrote a simple file loader. Then I tried to write a "garden" in order to store data more or less tree-like, but it somehow doesn't give off elegance ... How to correctly store and return binary data?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xtalen, 2014-10-28
@xom9lk

It seems like Redis keeps data in RAM, why shove files there? Better file system for files, I think not. Maximum - relational database.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question