C# 클래스 SunSync.Models.CachedHash

파일 보기 프로젝트 열기: qiniu/QSunSync 1 사용 예제들

공개 메소드들

메소드 설명
BatchInsertOrUpdate ( List fileItems, SQLiteConnection hashDBConn ) : void

批量插入/更新记录,比逐个插入/更新方式速度更快,待操作的记录越多对比越明显

CreateCachedHashDB ( string localHashDBPath ) : void
GetAllItems ( SQLiteConnection hashDBConn ) : string>.Dictionary
GetAllKeys ( SQLiteConnection hashDBConn ) : List
GetCachedHashByLocalPath ( string localPath, SQLiteConnection localHashDB ) : CachedHash
InsertCachedHash ( string localPath, string etag, string lastModified, SQLiteConnection localHashDB ) : void
InsertOrUpdateCachedHash ( string localPath, string etag, string lastModified, SQLiteConnection localHashDB ) : void
UpdateCachedHash ( string localPath, string etag, string lastModified, SQLiteConnection localHashDB ) : void

메소드 상세

BatchInsertOrUpdate() 공개 정적인 메소드

批量插入/更新记录,比逐个插入/更新方式速度更快,待操作的记录越多对比越明显
public static BatchInsertOrUpdate ( List fileItems, SQLiteConnection hashDBConn ) : void
fileItems List
hashDBConn System.Data.SQLite.SQLiteConnection
리턴 void

CreateCachedHashDB() 공개 정적인 메소드

public static CreateCachedHashDB ( string localHashDBPath ) : void
localHashDBPath string
리턴 void

GetAllItems() 공개 정적인 메소드

public static GetAllItems ( SQLiteConnection hashDBConn ) : string>.Dictionary
hashDBConn System.Data.SQLite.SQLiteConnection
리턴 string>.Dictionary

GetAllKeys() 공개 정적인 메소드

public static GetAllKeys ( SQLiteConnection hashDBConn ) : List
hashDBConn System.Data.SQLite.SQLiteConnection
리턴 List

GetCachedHashByLocalPath() 공개 정적인 메소드

public static GetCachedHashByLocalPath ( string localPath, SQLiteConnection localHashDB ) : CachedHash
localPath string
localHashDB System.Data.SQLite.SQLiteConnection
리턴 CachedHash

InsertCachedHash() 공개 정적인 메소드

public static InsertCachedHash ( string localPath, string etag, string lastModified, SQLiteConnection localHashDB ) : void
localPath string
etag string
lastModified string
localHashDB System.Data.SQLite.SQLiteConnection
리턴 void

InsertOrUpdateCachedHash() 공개 정적인 메소드

public static InsertOrUpdateCachedHash ( string localPath, string etag, string lastModified, SQLiteConnection localHashDB ) : void
localPath string
etag string
lastModified string
localHashDB System.Data.SQLite.SQLiteConnection
리턴 void

UpdateCachedHash() 공개 정적인 메소드

public static UpdateCachedHash ( string localPath, string etag, string lastModified, SQLiteConnection localHashDB ) : void
localPath string
etag string
lastModified string
localHashDB System.Data.SQLite.SQLiteConnection
리턴 void