类 SaApplication
java.lang.Object
cn.dev33.satoken.application.SaApplication
- 所有已实现的接口:
SaGetValueInterface,SaSetValueInterface
Application Model,全局作用域的读取值对象
在应用全局范围内: 存值、取值
- 作者:
- kong
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
从类继承的方法 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
-
字段详细资料
-
defaultInstance
默认实例
-
-
构造器详细资料
-
SaApplication
public SaApplication()
-
-
方法详细资料
-
get
取值- 指定者:
get在接口中SaGetValueInterface- 参数:
key- key- 返回:
- 值
-
set
写值- 指定者:
set在接口中SaSetValueInterface- 参数:
key- 名称value- 值- 返回:
- 对象自身
-
delete
删值- 指定者:
delete在接口中SaSetValueInterface- 参数:
key- 要删除的key- 返回:
- 对象自身
-
set
写值- 参数:
key- 名称value- 值ttl- 有效时间(单位:秒)- 返回:
- 对象自身
-
keys
返回存入的所有 key- 返回:
- /
-
clear
public void clear()清空存入的所有 key -
splicingDataKey
拼接key:变量存储时使用的key- 参数:
key- 原始 key- 返回:
- 拼接后的 key 值
-