Uses of Interface
cn.dev33.satoken.fun.SaRetGenericFunction
Packages that use SaRetGenericFunction
-
Uses of SaRetGenericFunction in cn.dev33.satoken.application
Methods in cn.dev33.satoken.application with parameters of type SaRetGenericFunctionModifier and TypeMethodDescriptiondefault <T> TSaSetValueInterface.get(String key, SaRetGenericFunction<T> fun) 取值 (如果值为 null,则执行 fun 函数获取值,并把函数返回值写入缓存) -
Uses of SaRetGenericFunction in cn.dev33.satoken.context.mock
Methods in cn.dev33.satoken.context.mock with parameters of type SaRetGenericFunctionModifier and TypeMethodDescriptionstatic <T> TSaTokenContextMockUtil.setMockContext(SaRetGenericFunction<T> fun) 写入 Mock 上下文,并执行一段代码,执行完毕后清除上下文