public final class IndicesRequestCache extends AbstractComponent implements RemovalListener<org.elasticsearch.indices.IndicesRequestCache.Key,BytesReference>, java.io.Closeable
Currently, the cache is only enabled for count requests, and can only be opted in on an index level setting that can be dynamically changed and defaults to false.
There are still several TODOs left in this class, some easily addressable, some more complex, but the support is functional.
| Modifier and Type | Field and Description |
|---|---|
static Setting<java.lang.Boolean> |
INDEX_CACHE_REQUEST_ENABLED_SETTING
A setting to enable or disable request caching on an index level.
|
static Setting<TimeValue> |
INDICES_CACHE_QUERY_EXPIRE |
static Setting<ByteSizeValue> |
INDICES_CACHE_QUERY_SIZE |
deprecationLogger, logger, settings| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
onRemoval(RemovalNotification<org.elasticsearch.indices.IndicesRequestCache.Key,BytesReference> notification) |
logDeprecatedSetting, logRemovedSetting, nodeNamepublic static final Setting<java.lang.Boolean> INDEX_CACHE_REQUEST_ENABLED_SETTING
public static final Setting<ByteSizeValue> INDICES_CACHE_QUERY_SIZE
public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablepublic void onRemoval(RemovalNotification<org.elasticsearch.indices.IndicesRequestCache.Key,BytesReference> notification)
onRemoval in interface RemovalListener<org.elasticsearch.indices.IndicesRequestCache.Key,BytesReference>