mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Deprecate CachingOperationInvoker#apply
This commit deprecates the only public accessor to `CacheOperationInvoker` so that we can make the entire class package private in the next feature release. Closes gh-19089
This commit is contained in:
parent
fc36b6b6e8
commit
421c464dd8
@ -111,7 +111,9 @@ public class CachingOperationInvoker implements OperationInvoker {
|
||||
* @param timeToLive the maximum time in milliseconds that a response can be cached
|
||||
* @return a caching version of the invoker or the original instance if caching is not
|
||||
* required
|
||||
* @deprecated as of 2.3.0 to make it package-private in 2.4
|
||||
*/
|
||||
@Deprecated
|
||||
public static OperationInvoker apply(OperationInvoker invoker, long timeToLive) {
|
||||
if (timeToLive > 0) {
|
||||
return new CachingOperationInvoker(invoker, timeToLive);
|
||||
|
Loading…
Reference in New Issue
Block a user