# MEMCACHE

Memcache is a high-performance, distributed memory object caching system. Its primary goal? To speed up dynamic web applications by alleviating database load.&#x20;

1. **Go Library**: Dive into the technicalities and explore the Go library we've integrated for Memcache [gomemcache](https://github.com/bradfitz/gomemcache)
2. **Memcache Server**: Interested in the core server that powers this magic? Check it out [here](https://memcached.org/).

#### 🛠️ Configuration Flags:

* **ENABLE\_CACHE**: Toggle caching on or off. By default, it's set to `true`. **If you set it to `false`,** the subsequent flags won't come into play.
* **CACHE\_TYPE**: Specifies the caching mechanism. For Memcache, set it to `MEMCACHE`.
* **MEMCACHE\_ADDRESS**: Determines where the Memcache server resides. By default, it's `memcached:11211`.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gotolabs.gitbook.io/lightninguservault/architecture/caching-mechanism/memcache.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
