org.keycloak.models.cache

## Interface UserCache

- All Known Implementing Classes:
    MemoryUserCache

      public interface UserCache

  Version:
    $Revision: 1 $
  Author:
    Bill Burke

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addCachedUser(String realmId, CachedUser user)`
    `void` | `clear()`
    `CachedUser` | `getCachedUser(String realmId, String id)`
    `CachedUser` | `getCachedUserByEmail(String realmId, String name)`
    `CachedUser` | `getCachedUserByUsername(String realmId, String name)`
    `void` | `invalidateCachedUser(String realmId, CachedUser user)`
    `void` | `invalidateCachedUserById(String realmId, String id)`
    `void` | `invalidateRealmUsers(String realmId)`
    `boolean` | `isEnabled()`
    `void` | `setEnabled(boolean enabled)`

- - ### Method Detail

    - #### clear

          void clear()

    - #### getCachedUser

          CachedUser getCachedUser(String realmId,
                                 String id)

    - #### invalidateCachedUser

          void invalidateCachedUser(String realmId,
                                  CachedUser user)

    - #### addCachedUser

          void addCachedUser(String realmId,
                           CachedUser user)

    - #### getCachedUserByUsername

          CachedUser getCachedUserByUsername(String realmId,
                                           String name)

    - #### getCachedUserByEmail

          CachedUser getCachedUserByEmail(String realmId,
                                        String name)

    - #### invalidateCachedUserById

          void invalidateCachedUserById(String realmId,
                                      String id)

    - #### invalidateRealmUsers

          void invalidateRealmUsers(String realmId)

    - #### isEnabled

          boolean isEnabled()

    - #### setEnabled

          void setEnabled(boolean enabled)

Copyright © 2014. All Rights Reserved.