@Component @EntityEventListener(value="post-commit-update") public class UserInfoCache extends com.google.common.cache.CacheLoader<String,UserInfo> implements org.hibernate.event.spi.PostUpdateEventListener
Constructor and Description |
---|
UserInfoCache(UserService userService) |
Modifier and Type | Method and Description |
---|---|
void |
clear(String... users) |
void |
clearAll() |
static UserInfoCache |
get() |
UserInfo |
get(String user) |
UserInfo |
load(String key) |
void |
onPostUpdate(org.hibernate.event.spi.PostUpdateEvent event) |
@Autowired public UserInfoCache(UserService userService)
public static UserInfoCache get()
public void clear(String... users)
public void clearAll()
public void onPostUpdate(org.hibernate.event.spi.PostUpdateEvent event)
onPostUpdate
in interface org.hibernate.event.spi.PostUpdateEventListener
Copyright © 2019 Suncode. All rights reserved.