mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-04-01 18:00:12 +02:00
cache authentication for 60 seconds to improve svn and bzr performance
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user