Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Redis support file caching?

I am working on an app in Ruby on Rails that requires frequent fetching of text files. These files are modified very rarely. Currently the files are fetched from Amazon s3. I would like to create a cache so that I can save on network time. I would prefer in-memory cache rather than writing on filesystem. Is it possible to use Redis or Memcached to store the files? If not what are my other options?

like image 525
Ayush Lodha Avatar asked Nov 08 '25 02:11

Ayush Lodha


1 Answers

Redis can be used for storing any data, the only limitation is that its protocol supports strings of up to 512MB - if your files are smaller than that, there shouldn't be any problem.

like image 55
Itamar Haber Avatar answered Nov 09 '25 18:11

Itamar Haber



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!