集成缓存

集成缓存

======================

enable feature lb cmp cs ic

set cache parameter -memLimit 512 -via "NS-CACHE-10.0:  11

add cache selector cache_sel_get "HTTP.REQ.METHOD.EQ(GET)"

add cache selector cache_sel_post "HTTP.REQ.METHOD.EQ(POST)"

add cache contentGroup cache_content_test -relExpiry 120 -weakNegRelExpiry 60 -quickAbortSize 10240 -maxResSize 1024 -memLimit 100 -pinned YES -lazyDnsResolve NO

add cache policy cache_policy_cache_test -rule TRUE -action CACHE -storeInGroup cache_content_test

add cache policy cache_policy_inval_test -rule TRUE -action INVAL -invalGroups cache_content_test

bind lb vserver lb_vsrv_web_https_443 -policyName cache_policy_cache_test -priority 100 -gotoPriorityExpression next -type REQUEST

bind lb vserver lb_vsrv_web_https_443 -policyName cache_policy_inval_test -priority 101 -gotoPriorityExpression next -type REQUEST

======================

猜你喜欢

转载自www.cnblogs.com/lsgxeva/p/9263326.html