public RocksDbTableDescriptor withObjectCacheSize(int objectCacheSize) {
    this.objectCacheSize = objectCacheSize;
    return this;
  }
Samza maintains an additional cache in front of RocksDB for frequently-accessed objects.
This cache contains deserialized objects (avoiding the deserialization overhead on cache
hits), in contrast to the RocksDB block cache ({@link #withCacheSize}), which caches
serialized objects. This property determines the number of objects to keep in Samza's
cache, per task instance. This same cache is also used for write buffering
(see {@link #withWriteBatchSize}). A value of 0 disables all caching and batching.
<p>
Default value is 1,000.
<p>
Refer to <code>stores.store-name.object.cache.size</code> in Samza configuration guide

@param objectCacheSize the object cache size
@return this table descriptor instance
samza-kv-rocksdb/src/main/java/org/apache/samza/storage/kv/descriptors/RocksDbTableDescriptor.java