Merge pull request #19 from mposolda/master
KEYCLOAK-3825 Update about cache docs
This commit is contained in:
commit
6c4e8d97a2
2 changed files with 36 additions and 30 deletions
2
topics/cache/clear.adoc
vendored
2
topics/cache/clear.adoc
vendored
|
@ -2,5 +2,5 @@
|
||||||
=== Clearing Caches at Runtime
|
=== Clearing Caches at Runtime
|
||||||
|
|
||||||
To clear the realm or user cache, go to the {{book.project.name}} admin console Realm Settings->Cache Config page.
|
To clear the realm or user cache, go to the {{book.project.name}} admin console Realm Settings->Cache Config page.
|
||||||
On this page you can clear the realm cache or the user cache.
|
On this page you can clear the realm cache, the user cache or cache of external public keys.
|
||||||
This will clear the caches for all realms and not only the selected realm.
|
This will clear the caches for all realms and not only the selected realm.
|
||||||
|
|
64
topics/cache/eviction.adoc
vendored
64
topics/cache/eviction.adoc
vendored
|
@ -14,19 +14,23 @@ _domain.xml_ depending on your <<fake/../../operating-mode.adoc#_operating-mode,
|
||||||
[source,xml]
|
[source,xml]
|
||||||
----
|
----
|
||||||
<subsystem xmlns="urn:jboss:domain:infinispan:4.0">
|
<subsystem xmlns="urn:jboss:domain:infinispan:4.0">
|
||||||
<cache-container name="keycloak" jndi-name="infinispan/Keycloak">
|
<cache-container name="keycloak" jndi-name="infinispan/Keycloak">
|
||||||
<local-cache name="realms"/>
|
<local-cache name="realms"/>
|
||||||
<local-cache name="users">
|
<local-cache name="users">
|
||||||
<eviction max-entries="10000" strategy="LRU"/>
|
<eviction strategy="LRU" max-entries="10000"/>
|
||||||
</local-cache>
|
</local-cache>
|
||||||
<local-cache name="sessions"/>
|
<local-cache name="sessions"/>
|
||||||
<local-cache name="offlineSessions"/>
|
<local-cache name="offlineSessions"/>
|
||||||
<local-cache name="loginFailures"/>
|
<local-cache name="loginFailures"/>
|
||||||
<local-cache name="work"/>
|
<local-cache name="work"/>
|
||||||
<local-cache name="realmVersions">
|
<local-cache name="authorization">
|
||||||
<transaction mode="BATCH" locking="PESSIMISTIC"/>
|
<eviction strategy="LRU" max-entries="100"/>
|
||||||
</local-cache>
|
</local-cache>
|
||||||
</cache-container>
|
<local-cache name="keys">
|
||||||
|
<eviction strategy="LRU" max-entries="1000"/>
|
||||||
|
<expiration max-idle="3600000"/>
|
||||||
|
</local-cache>
|
||||||
|
</cache-container>
|
||||||
----
|
----
|
||||||
|
|
||||||
|
|
||||||
|
@ -34,21 +38,23 @@ _domain.xml_ depending on your <<fake/../../operating-mode.adoc#_operating-mode,
|
||||||
[source,xml]
|
[source,xml]
|
||||||
----
|
----
|
||||||
<subsystem xmlns="urn:jboss:domain:infinispan:4.0">
|
<subsystem xmlns="urn:jboss:domain:infinispan:4.0">
|
||||||
<cache-container name="keycloak" jndi-name="infinispan/Keycloak">
|
<cache-container name="keycloak" jndi-name="infinispan/Keycloak">
|
||||||
<transport lock-timeout="60000"/>
|
<transport lock-timeout="60000"/>
|
||||||
<local-cache name="realms" />
|
<local-cache name="realms"/>
|
||||||
<local-cache name="users">
|
<local-cache name="users">
|
||||||
<eviction max-entries="10000" strategy="LRU"/>
|
<eviction max-entries="10000" strategy="LRU"/>
|
||||||
</local-cache>
|
</local-cache>
|
||||||
<distributed-cache name="sessions" mode="SYNC" owners="1"/>
|
<distributed-cache name="sessions" mode="SYNC" owners="1"/>
|
||||||
<distributed-cache name="offlineSessions" mode="SYNC" owners="1"/>
|
<distributed-cache name="offlineSessions" mode="SYNC" owners="1"/>
|
||||||
<distributed-cache name="loginFailures" mode="SYNC" owners="1"/>
|
<distributed-cache name="loginFailures" mode="SYNC" owners="1"/>
|
||||||
<replicated-cache name="work" mode="SYNC"/>
|
<distributed-cache name="authorization" mode="SYNC" owners="1"/>
|
||||||
<local-cache name="realmVersions">
|
<replicated-cache name="work" mode="SYNC"/>
|
||||||
<transaction mode="BATCH" locking="PESSIMISTIC"/>
|
<local-cache name="keys">
|
||||||
</local-cache>
|
<eviction max-entries="1000" strategy="LRU"/>
|
||||||
</cache-container>
|
<expiration max-idle="3600000"/>
|
||||||
|
</local-cache>
|
||||||
|
</cache-container>
|
||||||
----
|
----
|
||||||
|
|
||||||
To limit or expand the number of allowed entries simply add, edit, or remove the `eviction` element from the `invalidation-cache` or
|
To limit or expand the number of allowed entries simply add, edit, or remove the `eviction` element or the `expiration` element of particular cache
|
||||||
`distributed-cache` declaration you want to change.
|
configuration.
|
Loading…
Reference in a new issue