We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
对于一些基于本地缓存的数据,比如枚举、常量等,目前是没有办法直接更新数据的,而是需要通过类似下面的代码来更新数据:
// 获取指定的容器 Container<?> container = crane4jTemplate.opsForContainer() .getContainer("localCache"); // 将其强转为 LimitedConatnier 后再获取缓存数据的 Map 对象 Map<?, ?> data = ((LimitedConatnier<?>) container).getAll(); // 通过 Map 对象更新数据 data.putAll(xx);
希望能够提供一个独立的 API,用于快速的注册或刷新此类本地缓存数据,比如:
crane4jTemplate.opsForContainer() .refreshCacheData(”localCache“, xx); // 直接刷新数据
该 API 应当支持:
LimitedContainer
该 API 需要考虑与目前的 Crane4jTemplate 中已有的容器注册机制进行兼容。
Crane4jTemplate
The text was updated successfully, but these errors were encountered:
feat(LimitedContainer): support for dynamically updating cached data …
86c8c6b
…in LimitedContainer (GitHub #316)
96e4af0
Createsequence
No branches or pull requests
对于一些基于本地缓存的数据,比如枚举、常量等,目前是没有办法直接更新数据的,而是需要通过类似下面的代码来更新数据:
希望能够提供一个独立的 API,用于快速的注册或刷新此类本地缓存数据,比如:
该 API 应当支持:
LimitedContainer
,则刷新数据;LimitedContainer
,则报错;该 API 需要考虑与目前的
Crane4jTemplate
中已有的容器注册机制进行兼容。The text was updated successfully, but these errors were encountered: