• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Redis and Memcache

 
Ranch Hand
Posts: 401
2
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have to cache some data to improve the performance. The application will be deployed in multiple clusters. Which cache will be better to use here: Redis or Memcache?
 
Ranch Hand
Posts: 951
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Vaibhav Gargs wrote:We have to cache some data to improve the performance. The application will be deployed in multiple clusters. Which cache will be better to use here: Redis or Memcache?



Do you want to persist the cached data in storage as well. If yes, i think Redis is the option. Memcache is pure cache, it doesn't provide feature of persisting data.
 
Vaibhav Gargs
Ranch Hand
Posts: 401
2
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why someone will want to persist the data from cache to data store? In general, isn't it other way round, we get the data from data store and add it to cache.
 
Saloon Keeper
Posts: 5581
144
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While Redis can act as a cache, it's really an in-memory data store, and as such can persist its data.

Its home page wrote:Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker.

 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!