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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With