code: public static <Key, Entry> CacheConfiguration<Key, Entry> getCacheConfiguration(String cacheName) {
          CacheConfiguration<Key, Entry> cacheCfg = new CacheConfiguration<>(cacheName);
          cacheCfg.setBackups(0);
          cacheCfg.setCacheMode(CacheMode.PARTITIONED);
          cacheCfg.setAtomicityMode(CacheAtomicityMode.ATOMIC);
          cacheCfg.setReadThrough(false);
          cacheCfg.setWriteThrough(false);
          cacheCfg.setMemoryMode(CacheMemoryMode.OFFHEAP_TIERED);
          cacheCfg.setEvictionPolicy(new LruEvictionPolicy<>(10000));
          cacheCfg.setSwapEnabled(true);
          cacheCfg.setOffHeapMaxMemory(5L * 1024L * 1024L * 1024L);
          return cacheCfg;
      }
docs: Get default cache configuration for specified entity class
  
  @return Cache Configuration for specified entity class