0

I have been browsing through a lot of websites. I need experts advice on this one. can anyone please explain me what exactly is memcache ?

From what I understand that it is a distributed memory caching system used for dynamic web apps but my main question is do we need a database when we say 'memcache' or the term 'memcache' doesnt need a database ?

please answer. Thank you

skyrocker
  • 199
  • 2
  • 8
  • 20

2 Answers2

0

No, you don't require a traditional database when you say memcache, it's an in memory hash table(dictionary) with key,value storage and so it resides in RAM as a lookup table.For this fact, it is not persistent, so whenever you restart your server, memcache gets reset.

vishalg
  • 131
  • 1
  • 11
0

memcached is a specific program that runs a server that other programs can use to keep things in memory. It's something like an in-memory database, depending on your definition of database.

Caching something in memory can also be done generically, without memcached (pronounced memcache dee).

Jared
  • 521
  • 4
  • 8