public enum CacheLocationEnum extends Enum<CacheLocationEnum>
| Enum Constant and Description |
|---|
MEMORY
The cache will not be cleared unless the app is stopped.
|
NONE
No caching.It may lose some of performance.
|
THREAD_LOCAL
The cache will be stored in
ThreadLocal, and will be cleared when the excel read and write is completed. |
| Modifier and Type | Method and Description |
|---|---|
static CacheLocationEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CacheLocationEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CacheLocationEnum THREAD_LOCAL
ThreadLocal, and will be cleared when the excel read and write is completed.public static final CacheLocationEnum MEMORY
public static final CacheLocationEnum NONE
public static CacheLocationEnum[] values()
for (CacheLocationEnum c : CacheLocationEnum.values()) System.out.println(c);
public static CacheLocationEnum valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2018–2023 Alibaba Group. All rights reserved.