5.9. 安全域缓存
安全域实施缓存,以避免重复检索通常更改的数据。默认
realm 缓存域配置
XML
<server xmlns="urn:infinispan:server:15.0"> <security> <security-realms> <security-realm name="default" cache-max-size="1024" cache-lifespan="120000"> </security-realm> </security-realms> </security> </server>
JSON
{ "server": { "security": { "security-realms": [{ "name": "default", "cache-max-size": 1024, "cache-lifespan": 120000 }] } } }
YAML
server: security: securityRealms: - name: "default" cache-max-size: 1024 cache-lifespan: 120000
5.9.1. 清空域缓存
使用 CLI 刷新整个集群中的安全域缓存。
[node-1@mycluster//containers/default]> server aclcache flush