<commit_before># Infinispan for caching

Zanata uses Infinispan to manage some of its internal data caches. Configuration for these caches happens in JBoss' `standalone/configuration/standalone.xml`.

The Infinispan configuration will be located inside the following module in `standalone.xml`:

```xml
<subsystem xmlns="urn:jboss:domain:infinispan:1.4">
...
</subsystem>
```

Keep in mind that the module version may vary depending on your JBoss version.

Depending on your JBoss installation, the hibernate cache might already be present in the configuration, in which case there is no need to create another one, but just modify it.

### Configuration for Internal data caches

```xml
...
<cache-container name="zanata" default-cache="default"
    jndi-name="java:jboss/infinispan/container/zanata"
    start="EAGER"
    module="org.jboss.as.clustering.web.infinispan">
    <local-cache name="default">
        <transaction mode="NON_XA"/>
        <eviction strategy="LRU" max-entries="10000"/>
        <expiration max-idle="100000"/>
    </local-cache>
</cache-container>
...
```<commit_msg>Remove some mentions of Hibernate in the docs caches' section.<commit_after># Infinispan for caching

Zanata uses Infinispan to manage some of its internal data caches. Configuration for these caches happens in JBoss' `standalone/configuration/standalone.xml`.

The Infinispan configuration will be located inside the following module in `standalone.xml`:

```xml
<subsystem xmlns="urn:jboss:domain:infinispan:1.4">
...
</subsystem>
```

Keep in mind that the module version may vary depending on your JBoss version.

### Configuration for Internal data caches

```xml
...
<cache-container name="zanata" default-cache="default"
    jndi-name="java:jboss/infinispan/container/zanata"
    start="EAGER"
    module="org.jboss.as.clustering.web.infinispan">
    <local-cache name="default">
        <transaction mode="NON_XA"/>
        <eviction strategy="LRU" max-entries="10000"/>
        <expiration max-idle="100000"/>
    </local-cache>
</cache-container>
...
```

*Please see the JBoss EAP or Wildfly documentation for more options on cache configuration.*
{'fraction_non_alphanumeric': 0.11565257779842081, 'fraction_numerical': 0.012076172782164421, 'mean_word_length': 4.398496240601504, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 10}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3808278', 'n_tokens_mistral': 687, 'n_tokens_neox': 630, 'n_words': 205}