BlockCache. Caches are configured (and instantiated) by
CacheConfig. See head of the
CacheConfigclass for constants that define cache options and configuration keys to use setting cache options. Cache implementations include the default, native on-heap
BucketCachethat has a bunch of deploy formats including acting as a L2 for LruBlockCache -- when a block is evicted from LruBlockCache, it goes to the BucketCache and when we search a block, we look in both places -- or, the most common deploy type, using
CombinedBlockCache, BucketCache is used as a host for data blocks with meta blocks in an instance of LruBlockCache. BucketCache can also be onheap, offheap, and file-backed.
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.