Class LegacyCacheMigrator
Carry out migration for cache format v0.0.21 and earlier
Implements
Inherited Members
Namespace: Pixiv.VroidSdk.Cache.Migrate
Assembly: Pixiv.VroidSdk.dll
Syntax
public class LegacyCacheMigrator : ICacheMigrator<CachedDownloadLicenseFile>
Constructors
LegacyCacheMigrator(String, String)
Constructor
Declaration
public LegacyCacheMigrator(string prefix, string persistentDataPath)
Parameters
Type | Name | Description |
---|---|---|
String | prefix | Directory name to store model file |
String | persistentDataPath | The corresponding data path of Application.persistentDataPath on Unity |
Methods
Migrate(IFileReadWriteDelete, ICacheStorage<CachedDownloadLicenseFile>)
Migrate
Declaration
public void Migrate(IFileReadWriteDelete fileReadWrite, ICacheStorage<CachedDownloadLicenseFile> storage)
Parameters
Type | Name | Description |
---|---|---|
IFileReadWriteDelete | fileReadWrite | Module to read and write cache data |
ICacheStorage<CachedDownloadLicenseFile> | storage |