diff --git a/docs/content/configuration/caching.md b/docs/content/configuration/caching.md index 96502d37676..0585f985798 100644 --- a/docs/content/configuration/caching.md +++ b/docs/content/configuration/caching.md @@ -19,13 +19,13 @@ for both broker and historical nodes, when defined in the common properties file |Property|Possible Values|Description|Default| |--------|---------------|-----------|-------| -|`druid.cache.type`|`local`, `memcached`, `hybrid`|The type of cache to use for queries. See below of the configuration options for each cache type|`local`| +|`druid.cache.type`|`local`, `memcached`, `hybrid`, `caffeine`|The type of cache to use for queries. See below of the configuration options for each cache type|`caffeine`| #### Local Cache
-DEPRECATED: Use caffeine instead +DEPRECATED: Use caffeine (default as of v0.12.0) instead
The local cache is deprecated in favor of the Caffeine cache, and may be removed in a future version of Druid. The Caffeine cache affords significantly better performance and control over eviction behavior compared to `local` cache, and is recommended in any situation where you are using JRE 8u60 or higher. @@ -48,7 +48,7 @@ Below are the configuration options known to this module: |`runtime.properties`|Description|Default| |--------------------|-----------|-------| -|`druid.cache.type`| Set this to `caffeine`|`local`| +|`druid.cache.type`| Set this to `caffeine` or leave out parameter|`caffeine`| |`druid.cache.sizeInBytes`|The maximum size of the cache in bytes on heap.|None (unlimited)| |`druid.cache.expireAfter`|The time (in ms) after an access for which a cache entry may be expired|None (no time limit)| |`druid.cache.cacheExecutorFactory`|The executor factory to use for Caffeine maintenance. One of `COMMON_FJP`, `SINGLE_THREAD`, or `SAME_THREAD`|ForkJoinPool common pool (`COMMON_FJP`)| diff --git a/docs/content/configuration/index.md b/docs/content/configuration/index.md index 9c4e768f15e..cb1d112a76f 100644 --- a/docs/content/configuration/index.md +++ b/docs/content/configuration/index.md @@ -346,7 +346,7 @@ You can enable caching of results at the broker, historical, or realtime level u |Property|Possible Values|Description|Default| |--------|---------------|-----------|-------| -|`druid.cache.type`|`local`, `memcached`|The type of cache to use for queries.|`local`| +|`druid.cache.type`|`local`, `memcached`, `hybrid`, `caffeine`|The type of cache to use for queries.|`caffeine`| |druid.(broker|historical|realtime).cache.unCacheable|All druid query types|All query types to not cache.|["groupBy", "select"]| |druid.(broker|historical|realtime).cache.useCache|true, false|Whether to use cache for getting query results.|false| |druid.(broker|historical|realtime).cache.populateCache|true, false|Whether to populate cache.|false|