Ayush Lodha
Ayush Lodha

Reputation: 191

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?

Upvotes: 3

Views: 8566

Answers (1)

Itamar Haber
Itamar Haber

Reputation: 50052

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.

Upvotes: 12

Related Questions