Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

是否支持可配置cache前缀 #96

Open
tangdu opened this issue Jul 18, 2023 · 2 comments
Open

是否支持可配置cache前缀 #96

tangdu opened this issue Jul 18, 2023 · 2 comments

Comments

@tangdu
Copy link

tangdu commented Jul 18, 2023

如AppTicketManager中的
private static final String APP_TICKET_PREFIX = "app_ticket";
与TokenManager中的
private static final String appAccessTokenKeyPrefix = "app_access_token"; private static final String tenantAccessTokenKeyPrefix = "tenant_access_token";
现在只能在创建client后,手动重置自定义的
ICache cache = LocalCache.getInstance(); GlobalAppTicketManager.setAppTicketManager(new AppTicketManager(cache)); GlobalTokenManager.setTokenManager(new TokenManager(cache));

@tangdu
Copy link
Author

tangdu commented Jul 18, 2023

另外tenantKey 这个怎么默认带入了缓存key??

@tangdu
Copy link
Author

tangdu commented Jul 18, 2023

自建的应用获取token是不是要这样改一下好? 因为不需要tenantKey
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant