public class CachedSessionRepository extends Object implements SessionRepository, Delegatable<SessionRepository>
| 构造器和说明 |
|---|
CachedSessionRepository() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(Session session) |
Session |
getById(String id) |
Cache<String,Session> |
getCache() |
SessionRepository |
getDelegate() |
void |
removeById(String id) |
void |
setCache(Cache<String,Session> cache) |
void |
setDelegate(SessionRepository delegate) |
void |
update(Session session) |
public SessionRepository getDelegate()
getDelegate 在接口中 Delegatable<SessionRepository>public void setDelegate(SessionRepository delegate)
setDelegate 在接口中 Delegatable<SessionRepository>public Session getById(String id)
getById 在接口中 SessionRepositorygetById 在接口中 Repository<Session,String>public void add(Session session)
add 在接口中 SessionRepositoryadd 在接口中 Repository<Session,String>public void update(Session session)
update 在接口中 SessionRepositoryupdate 在接口中 Repository<Session,String>public void removeById(String id)
removeById 在接口中 SessionRepositoryremoveById 在接口中 Repository<Session,String>Copyright © 2021. All rights reserved.