Package cn.dev33.satoken.context.mock
Class SaStorageForMock
java.lang.Object
cn.dev33.satoken.context.mock.SaStorageForMock
- All Implemented Interfaces:
SaGetValueInterface,SaSetValueInterface,SaStorage
对 SaStorage 包装类的实现(Mock 版)
- Since:
- 1.42.0
- Author:
- click33
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cn.dev33.satoken.application.SaGetValueInterface
get, getDouble, getFloat, getInt, getLong, getModel, getModel, getString, getValueByDefaultValue, has, valueIsNullMethods inherited from interface cn.dev33.satoken.application.SaSetValueInterface
get, setByNull
-
Field Details
-
dataMap
-
-
Constructor Details
-
SaStorageForMock
public SaStorageForMock()
-
-
Method Details
-
getSource
获取底层源对象 -
set
在 [Request作用域] 里写入一个值- Specified by:
setin interfaceSaSetValueInterface- Specified by:
setin interfaceSaStorage- Parameters:
key- 名称value- 值- Returns:
- 对象自身
-
get
在 [Request作用域] 里获取一个值- Specified by:
getin interfaceSaGetValueInterface- Specified by:
getin interfaceSaStorage- Parameters:
key- key- Returns:
- 值
-
delete
在 [Request作用域] 里删除一个值- Specified by:
deletein interfaceSaSetValueInterface- Specified by:
deletein interfaceSaStorage- Parameters:
key- 要删除的key- Returns:
- 对象自身
-