code: public Builder<T> useSerializerInDisk(
          int maxDiskSizeBytes,
          boolean usePrivateFiles,
          CacheSerializer<T> serializer,
          Context context
      ) {
          File folder = getDefaultDiskCacheFolder(usePrivateFiles, context);
          return useSerializerInDisk(maxDiskSizeBytes, folder, serializer);
      }
docs: Use custom serialization/deserialization to store and retrieve objects from disk cache.
  
  @param maxDiskSizeBytes is the max size of disk in bytes which an be used by the disk cache
  layer.
  @param usePrivateFiles  is true if you want to use {@link Context#MODE_PRIVATE} with the
  default disk cache folder.
  @param serializer       provides serialization/deserialization methods for the disk cache
  layer.
  @param context          is used to access file system.
  @return the builder.