@Service public class CaptchaStorageServiceImpl extends com.baomidou.mybatisplus.extension.service.impl.ServiceImpl<CaptchaStorageMapper,CaptchaStorage> implements ICaptchaStorageService
验证码存储表 服务实现类
| 限定符和类型 | 字段和说明 |
|---|---|
static Integer |
KEY_MAX_LENGTH
KEY的最大长度。
|
| 构造器和说明 |
|---|
CaptchaStorageServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
delete(String key)
删除数据
|
Object |
get(String key)
获取值
|
boolean |
hasKey(String key)
判断是否存在
|
void |
set(String key,
String value,
long expiresInSeconds)
设置存储的值
|
closeSqlSession, currentMapperClass, currentModelClass, executeBatch, executeBatch, executeBatch, getBaseMapper, getEntityClass, getMap, getObj, getOne, getSqlStatement, retBool, saveBatch, saveOrUpdate, saveOrUpdateBatch, sqlSessionBatch, sqlStatement, updateBatchByIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcount, count, getBaseMapper, getById, getEntityClass, getMap, getObj, getOne, getOne, ktQuery, ktUpdate, lambdaQuery, lambdaUpdate, list, list, listByIds, listByMap, listMaps, listMaps, listObjs, listObjs, listObjs, listObjs, page, page, pageMaps, pageMaps, query, remove, removeById, removeById, removeByIds, removeByMap, save, saveBatch, saveBatch, saveOrUpdate, saveOrUpdate, saveOrUpdateBatch, saveOrUpdateBatch, update, update, update, updateBatchById, updateBatchById, updateByIdpublic static final Integer KEY_MAX_LENGTH
public void set(String key, String value, long expiresInSeconds)
ICaptchaStorageServiceset 在接口中 ICaptchaStorageServiceexpiresInSeconds - 存储的是秒public boolean hasKey(String key)
ICaptchaStorageServicehasKey 在接口中 ICaptchaStorageServicepublic void delete(String key)
ICaptchaStorageServicedelete 在接口中 ICaptchaStorageServicepublic Object get(String key)
ICaptchaStorageServiceget 在接口中 ICaptchaStorageServiceCopyright © 2024. All rights reserved.