public class AccountCacheImpl extends Object implements AccountCache
Modifier and Type | Method and Description |
---|---|
void |
evict(com.google.gerrit.reviewdb.client.Account.Id accountId) |
void |
evictAll() |
void |
evictByUsername(String username) |
AccountState |
get(com.google.gerrit.reviewdb.client.Account.Id accountId) |
AccountState |
getByUsername(String username) |
AccountState |
getIfPresent(com.google.gerrit.reviewdb.client.Account.Id accountId) |
static com.google.inject.Module |
module() |
public static com.google.inject.Module module()
public AccountState get(com.google.gerrit.reviewdb.client.Account.Id accountId)
get
in interface AccountCache
public AccountState getIfPresent(com.google.gerrit.reviewdb.client.Account.Id accountId)
getIfPresent
in interface AccountCache
public AccountState getByUsername(String username)
getByUsername
in interface AccountCache
public void evict(com.google.gerrit.reviewdb.client.Account.Id accountId) throws IOException
evict
in interface AccountCache
IOException
public void evictAll() throws IOException
evictAll
in interface AccountCache
IOException
public void evictByUsername(String username)
evictByUsername
in interface AccountCache