类 SaStorageForMock
java.lang.Object
cn.dev33.satoken.context.mock.SaStorageForMock
- 所有已实现的接口:
SaGetValueInterface,SaSetValueInterface,SaStorage
对 SaStorage 包装类的实现(Mock 版)
- 从以下版本开始:
- 1.42.0
- 作者:
- click33
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 cn.dev33.satoken.application.SaGetValueInterface
get, getDouble, getFloat, getInt, getLong, getModel, getModel, getString, getValueByDefaultValue, has, valueIsNull从接口继承的方法 cn.dev33.satoken.application.SaSetValueInterface
get, setByNull
-
字段详细资料
-
dataMap
-
-
构造器详细资料
-
SaStorageForMock
public SaStorageForMock()
-
-
方法详细资料
-
getSource
获取底层源对象 -
set
在 [Request作用域] 里写入一个值- 指定者:
set在接口中SaSetValueInterface- 指定者:
set在接口中SaStorage- 参数:
key- 名称value- 值- 返回:
- 对象自身
-
get
在 [Request作用域] 里获取一个值- 指定者:
get在接口中SaGetValueInterface- 指定者:
get在接口中SaStorage- 参数:
key- key- 返回:
- 值
-
delete
在 [Request作用域] 里删除一个值- 指定者:
delete在接口中SaSetValueInterface- 指定者:
delete在接口中SaStorage- 参数:
key- 要删除的key- 返回:
- 对象自身
-