C# Class KFileCacheList, KEngine

一个List,具有缓存在磁盘的功能!高性能写入! 不重复的key, HashSet 会自动将上次写入错误的信息抹掉 不能做Delete的操作,只适合Add, 比CFileHashSet更好!后边替代它!
Inheritance: IDisposable
显示文件 Open project: mr-kelly/KEngine

Public Methods

Method Description
Add ( string str ) : bool
Contains ( string str ) : bool
Dispose ( ) : void
Flush ( ) : void

主动刷新缓存区

KFileCacheList ( string ioPath, HashSet &refHashSet, bool isMd5Mode = true ) : System
KFileCacheList ( string ioPath, bool isMd5Mode = true ) : System

Private Methods

Method Description
Init ( string ioPath, HashSet &refHashSet, bool isMd5Mode ) : void

Method Details

Add() public method

public Add ( string str ) : bool
str string
return bool

Contains() public method

public Contains ( string str ) : bool
str string
return bool

Dispose() public method

public Dispose ( ) : void
return void

Flush() public method

主动刷新缓存区
public Flush ( ) : void
return void

KFileCacheList() public method

public KFileCacheList ( string ioPath, HashSet &refHashSet, bool isMd5Mode = true ) : System
ioPath string
refHashSet HashSet
isMd5Mode bool
return System

KFileCacheList() public method

public KFileCacheList ( string ioPath, bool isMd5Mode = true ) : System
ioPath string
isMd5Mode bool
return System