Class CacheFileInfo
キャッシュファイルの情報
Namespace: VRoidSDK
Assembly: VRoidSDK.dll
Syntax
[Serializable]
public class CacheFileInfo : ISerializationCallbackReceiver
Properties
ExpiresAt
キャッシュの期限
Declaration
public DateTime? ExpiresAt { get; set; }
Property Value
Type | Description |
---|---|
Nullable<DateTime> |
Remarks
nullの場合は無期限
FilePath
ファイルの保存先
Declaration
public string FilePath { get; set; }
Property Value
Type | Description |
---|---|
String |
LastAccessTime
最後に利用した時刻
Declaration
public DateTime LastAccessTime { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
Methods
DisableExpiration()
キャッシュの期限を無期限に設定
Declaration
public void DisableExpiration()
IsExpired()
保存期限を過ぎているか
Declaration
public bool IsExpired()
Returns
Type | Description |
---|---|
Boolean | 失効時間超過: true, それ以外: false |
OnAfterDeserialize()
Declaration
public void OnAfterDeserialize()
OnBeforeSerialize()
Declaration
public void OnBeforeSerialize()
UpdateLastAccessTime()
最後に利用した時刻を更新
Declaration
public void UpdateLastAccessTime()
UpdateToLongestExpirationTime(DateTime)
キャッシュの期限を延長 設定済みの期限の方が長かったり無期限の場合は変更されない
Declaration
public void UpdateToLongestExpirationTime(DateTime newExpiresAt)
Parameters
Type | Name | Description |
---|---|---|
DateTime | newExpiresAt |