> For the complete documentation index, see [llms.txt](https://gotolabs.gitbook.io/lightninguservault/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gotolabs.gitbook.io/lightninguservault/architecture/caching-mechanism/memcache.md).

# 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`.
