mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-11 21:03:31 +00:00
SEC-1054: Add method "clear" to interface AclCache. As requested.
This commit is contained in:
parent
ccf422af5a
commit
766aca885b
@ -39,4 +39,6 @@ public interface AclCache {
|
|||||||
MutableAcl getFromCache(Serializable pk);
|
MutableAcl getFromCache(Serializable pk);
|
||||||
|
|
||||||
void putInCache(MutableAcl acl);
|
void putInCache(MutableAcl acl);
|
||||||
|
|
||||||
|
void clearCache();
|
||||||
}
|
}
|
||||||
|
@ -137,4 +137,8 @@ public class EhCacheBasedAclCache implements AclCache {
|
|||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void clearCache() {
|
||||||
|
cache.removeAll();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user