Package cn.dev33.satoken.context.model
Interface SaStorage
- All Superinterfaces:
SaGetValueInterface,SaSetValueInterface
- All Known Implementing Classes:
SaStorageForMock
Storage Model,请求作用域的读取值对象。
在一次请求范围内: 存值、取值。数据在请求结束后失效。
- Since:
- 1.16.0
- Author:
- click33
-
Method Summary
Methods 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
-
Method Details
-
getSource
Object getSource()获取底层被包装的源对象- Returns:
- /
-
get
取值- Specified by:
getin interfaceSaGetValueInterface- Parameters:
key- key- Returns:
- 值
-
set
写值- Specified by:
setin interfaceSaSetValueInterface- Parameters:
key- 名称value- 值- Returns:
- 对象自身
-
delete
删值- Specified by:
deletein interfaceSaSetValueInterface- Parameters:
key- 要删除的key- Returns:
- 对象自身
-