新手问题 关于 second_level_cache 插件的 prefix

msl12 · June 01, 2016 · Last by msl12 replied at June 01, 2016 · 1940 hits

SecondLevelCache.configure.cache_key_prefix 这个设置的作用是什么呢?

求教。

  1. 起到 namespace 作用
  2. 可以更细粒度控制缓存的失效,比如如果想清空所有 slc 存储的内容,就可以更改 cache key prefix 的值,这样所有 slc 存储的内容就都失效了,不需要把整个 cache store 的内容都 clear 掉。

#1 楼 @hooopo 谢谢哈,明白一些了

You need to Sign in before reply, if you don't have an account, please Sign up first.