|
|
|
@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* Copyright 2002-2020 the original author or authors. |
|
|
|
* Copyright 2002-2023 the original author or authors. |
|
|
|
* |
|
|
|
* |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
@ -24,14 +24,16 @@ import org.springframework.cache.Cache; |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Simple cache manager working against a given collection of caches. |
|
|
|
* Simple cache manager working against a given collection of caches. |
|
|
|
* Useful for testing or simple caching declarations. |
|
|
|
* Useful for testing or simple caching declarations. |
|
|
|
* <p> |
|
|
|
* |
|
|
|
* When using this implementation directly, i.e. not via a regular |
|
|
|
* <p>When using this implementation directly, i.e. not via a regular |
|
|
|
* bean registration, {@link #initializeCaches()} should be invoked |
|
|
|
* bean registration, {@link #initializeCaches()} should be invoked |
|
|
|
* to initialize its internal state once the |
|
|
|
* to initialize its internal state once the |
|
|
|
* {@linkplain #setCaches(Collection) caches have been provided}. |
|
|
|
* {@linkplain #setCaches(Collection) caches have been provided}. |
|
|
|
* |
|
|
|
* |
|
|
|
* @author Costin Leau |
|
|
|
* @author Costin Leau |
|
|
|
* @since 3.1 |
|
|
|
* @since 3.1 |
|
|
|
|
|
|
|
* @see NoOpCache |
|
|
|
|
|
|
|
* @see org.springframework.cache.concurrent.ConcurrentMapCache |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public class SimpleCacheManager extends AbstractCacheManager { |
|
|
|
public class SimpleCacheManager extends AbstractCacheManager { |
|
|
|
|
|
|
|
|
|
|
|
|