5.4.2.3. 检查现有缓存
用于内省现有缓存的管理 CLI 命令
/core-service=management/security-realm=LDAPRealm/authentication=ldap/cache=by-access-time:read-resource(include-runtime=true) { "outcome" => "success", "result" => { "cache-failures" => true, "cache-size" => 1, "eviction-time" => 300, "max-cache-size" => 100 } }
include-runtime
属性添加 cache-size
,它显示缓存中的当前项目数。它在上面的输出中是 1
。