Caching Flashcards

1
Q

What is caching?

A

Caching is the process of sorting recently generated results in memory. The result can then be used again when requested instead of going back to its original source.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do we deal with stale data when we cache?

A

Generally, you want to set some sort of expiration on your cache system. cached data should only exist for a period of time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is Memcached?

A

memcached is a memory-based cache framework. it takes a piece of memory and converts it to cache space. Memcached can run on multiple servers and share cache on multiple servers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what are some of the differences between Memcached and Redis?

A

Redis supports complex data types, offers data persistence, and has a different memory management scheme.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly