Skip to content

ICacheable Interface

A cacheable metadata item. Can be used with LoadAssemblyCache<T>(string) and BepInEx.Bootstrap.TypeLoader.SaveAssemblyCache``1(System.String%2cSystem.Collections.Generic.Dictionary%7bSystem.String%2cSystem.Collections.Generic.List%7b``0%7d%7d%2cSystem.Collections.Generic.Dictionary%7bSystem.String%2cSystem.String%7d) to cache plugin metadata.

C#
public interface ICacheable

Serialize the object into a binary format.

C#
void Save(BinaryWriter bw)

bw BinaryWriter

Loads the object from binary format.

C#
void Load(BinaryReader br)

br BinaryReader