> For the complete documentation index, see [llms.txt](https://docs.pentaho.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pentaho.com/install/10.2-install/multidimensional-data-modeling-in-pentaho/mondrian-cache-control/switch-to-memcached-cp/switch-from-the-infinispan-cache-framework.md).

# Switch from the Infinispan cache framework

If you already use the Memcached cache framework in your organization and would like to hook it up to the Pentaho Analyzer OLAP engine, follow the directions below to switch from the default Infinispan cache framework configuration.

**Note:** Pentaho and Mondrian developers recommend against using Memcached. You are almost certain to have better performance with Infinispan.

Perform the following steps to switch from Infinispan to Memcached:

1. If the Pentaho Server or standalone Mondrian engine are running, shut them down now.
2. Verify the required JARs are present in the `/WEB-INF/lib/` directory inside of your deployed `pentaho.war` or Mondrian engine.

   If you performed a default install of the Pentaho Analysis Enterprise Edition package, then you should have all of the required JARs installed to the Pentaho or Mondrian Server. If you are not sure, the required JARs are:

   * `pentaho-analysis-ee`
   * `commons-lang`
   * `commons-io`
   * `commons-codec`
   * `pentaho-ee-dsc-core`
   * `memcached`
3. Edit the `pentaho-analysis-config.xml` in the `/WEB-INF/classes/` directory inside the deployed `pentaho.war` or Mondrian engine, and change the value of `SEGMENT_CACHE_IMPL` to match the class name referenced below:

   ```
   <entry key="SEGMENT_CACHE_IMPL">com.pentaho.​analysis.segmentcache.​impl.memcached.​MemcachedSegmentCache</entry>
   ```
4. Edit the `memcached-config.xml` in the `/WEB-INF/classes/` directory inside the deployed `pentaho.war` or Mondrian engine, and change the values of `SALT`, `SERVERS`, and `WEIGHT` to match your preference:

   ```
   <entry key="SALT">YOUR SECRET SALT VALUE HERE</entry>
   <entry key="SERVERS">192.168.0.1:1642,192.168.0.2:1642</entry>
   <entry key="WEIGHTS">1,1</entry>
   ```

Your Pentaho Analysis Enterprise Edition instance is now configured to use Memcached for OLAP segment caching.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.pentaho.com/install/10.2-install/multidimensional-data-modeling-in-pentaho/mondrian-cache-control/switch-to-memcached-cp/switch-from-the-infinispan-cache-framework.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
