See the following steps to understand how Memcached works:
- Memcached first tries to get the detail of the user, and the browser sends the request to the application.
- An application calls the Memcached for a particular user.
- If Result found in Memcached, Return the result from Memcached.
- If Result Not found in Memcached, Application sends the request to the database and save the result in Memcached.
- Each Memcached have one unique key.
- Get/Set the data work on behalf of the key.
- You can also delete one or more keys.
- You can also assign tags to one/more keys.