public class ServletSessionCache extends Object implements SessionCacheFactory
aesKeyName, cacheKey, cacheSmsPhone, userIdName| 构造器和说明 |
|---|
ServletSessionCache() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getAesKey(String token) |
String |
getSmsCode(String phoneNo) |
String |
getUserId(String token) |
String |
getUserInfo(String token,
String key) |
void |
removeSmsCode(String phoneNo) |
void |
removeToken(String token) |
void |
setAesKey(String token,
String aesKey) |
void |
setSmsCode(String phoneNo,
String code,
long... expire) |
void |
setToken(String token,
Long userId) |
void |
setUserInfo(String token,
String key,
String val) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetKey, reletExpirepublic String getAesKey(String token)
getAesKey 在接口中 SessionCacheFactorypublic String getUserId(String token)
getUserId 在接口中 SessionCacheFactorypublic void setToken(String token, Long userId)
setToken 在接口中 SessionCacheFactorypublic void setAesKey(String token, String aesKey)
setAesKey 在接口中 SessionCacheFactorypublic void setUserInfo(String token, String key, String val)
setUserInfo 在接口中 SessionCacheFactorypublic String getUserInfo(String token, String key)
getUserInfo 在接口中 SessionCacheFactorypublic void setSmsCode(String phoneNo, String code, long... expire)
setSmsCode 在接口中 SessionCacheFactoryexpire - 秒public String getSmsCode(String phoneNo)
getSmsCode 在接口中 SessionCacheFactorypublic void removeSmsCode(String phoneNo)
removeSmsCode 在接口中 SessionCacheFactorypublic void removeToken(String token)
removeToken 在接口中 SessionCacheFactoryCopyright © 2021. All rights reserved.