cache authentication for 60 seconds to improve svn and bzr performance

This commit is contained in:
Sebastian Sdorra
2011-01-15 14:05:13 +01:00
parent f7b9803b20
commit 5fa282cfc0
4 changed files with 195 additions and 27 deletions

View File

@@ -186,8 +186,35 @@ public class AuthenticationResult
return user;
}
/**
* Method description
*
*
* @return
*/
public boolean isCacheable()
{
return cacheable;
}
//~--- set methods ----------------------------------------------------------
/**
* Method description
*
*
* @param cacheable
*/
public void setCacheable(boolean cacheable)
{
this.cacheable = cacheable;
}
//~--- fields ---------------------------------------------------------------
/** Field description */
private boolean cacheable = true;
/** Field description */
private Collection<String> groups;