Memcached Interview Questions and Answers
Freshers / Beginner level questions & answers
Ques 1. What is Memcached?
Memcached is a high-performance, distributed memory caching system used to speed up dynamic web applications by alleviating database load.
Ques 2. What is the default port number for Memcached?
The default port for Memcached is 11211.
Ques 3. What are the advantages of using Memcached?
Advantages of Memcached include improved performance, reduced database load, scalability, and ease of use as a distributed caching solution.
Ques 4. What are Memcached buckets?
Memcached buckets are logical containers that allow the grouping of related caches. They help organize and manage different sets of data.
Ques 5. How can you add or update a value in Memcached?
You can add or update a value in Memcached using the 'set' command. If the key already exists, it will be updated; otherwise, a new key-value pair will be created.
Ques 6. What is the Memcached max connection limit?
The default max connection limit for Memcached is 1024. It can be configured in the Memcached server settings.
Ques 7. How can you retrieve data from Memcached?
Data can be retrieved from Memcached using the 'get' command by providing the key associated with the desired value.
Ques 8. How does Memcached handle cache misses?
In case of a cache miss, Memcached retrieves the data from the underlying storage (e.g., database) and stores it in the cache for subsequent requests.
Ques 9. What is the Memcached max item size?
The default max item size in Memcached is 1 MB. It can be adjusted based on the application's requirements.
Ques 10. What is Memcached connection timeout?
The connection timeout in Memcached specifies the maximum time a client is allowed to establish a connection with the server. It is set in seconds.
Most helpful rated by users: