public class SpringCacheCaptchaCache extends Object implements ICaptchaCache, org.springframework.beans.factory.InitializingBean
| Constructor and Description |
|---|
SpringCacheCaptchaCache() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
String |
getAndRemove(String cacheName,
String uuid)
获取并删除缓存,验证码不管成功只能验证一次
|
void |
put(String cacheName,
String uuid,
String value)
保存缓存
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAndRemove, putpublic void put(String cacheName, String uuid, String value)
ICaptchaCacheput in interface ICaptchaCachecacheName - 缓存空间uuid - 验证码 uuidvalue - 缓存valuepublic String getAndRemove(String cacheName, String uuid)
ICaptchaCachegetAndRemove in interface ICaptchaCachecacheName - 缓存空间uuid - 验证码 uuidCopyright © 2024. All rights reserved.