我正在使用Spring缓存。如果要在适当的时候满足特定条件,我想删除缓存中的单个条目。
Unit
}
如果满足if语句中的条件,如何从客户对象中删除客户对象?
答案 0 :(得分:1)
首先,看看RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Check and ignore if the requested path is /install/
RewriteCond %{REQUEST_URI} !^/install(/|$)
RewriteRule . index.php [L]
批注:
然后,看看“ 条件”缓存:
@CacheEvict
与@CacheEvict
具有许多相同的属性:
希望这会有所帮助!