@Configuration
@ConditionalOnProperty(value="shenyu.plugins.token-cache.enabled",
havingValue="true",
matchIfMissing=true)
public class TokenCachePluginConfiguration
extends java.lang.Object
| 构造器和说明 |
|---|
TokenCachePluginConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.shenyu.plugin.api.ShenyuPlugin |
tokenCachePlugin(org.springframework.data.redis.core.ReactiveStringRedisTemplate redisTemplate,
org.springframework.web.reactive.function.client.WebClient.Builder webClientBuilder)
TokenCache plugin bean.
|
org.apache.shenyu.plugin.base.handler.PluginDataHandler |
tokenCachePluginDataHandler()
TokenCache plugin data handler bean.
|
@Bean
public org.apache.shenyu.plugin.api.ShenyuPlugin tokenCachePlugin(org.springframework.data.redis.core.ReactiveStringRedisTemplate redisTemplate,
org.springframework.web.reactive.function.client.WebClient.Builder webClientBuilder)
redisTemplate - the reactive redis template for token validationwebClientBuilder - the web client builder for HTTP user info queries@Bean public org.apache.shenyu.plugin.base.handler.PluginDataHandler tokenCachePluginDataHandler()
Copyright © 2026 The Apache Software Foundation. All rights reserved.