C# Class YouTubeFeast.HashingAndCaching

Show file Open project: bietiekay/YouTubeFeast

Public Methods

Method Description
AddToCache ( String Hash, String Filename ) : void
CalculateMD5Sum ( string file ) : String
GetFilenameForHash ( String Hash ) : String
HashCodeExists ( String Hash ) : bool
HashingAndCaching ( String HashCachePath ) : System
ReplaceFilenameInCache ( String Hash, String Filename ) : String

Private Methods

Method Description
SerializeToDisk ( ) : void

Serializes the cache to disk.

Method Details

AddToCache() public method

public AddToCache ( String Hash, String Filename ) : void
Hash String
Filename String
return void

CalculateMD5Sum() public method

public CalculateMD5Sum ( string file ) : String
file string
return String

GetFilenameForHash() public method

public GetFilenameForHash ( String Hash ) : String
Hash String
return String

HashCodeExists() public method

public HashCodeExists ( String Hash ) : bool
Hash String
return bool

HashingAndCaching() public method

public HashingAndCaching ( String HashCachePath ) : System
HashCachePath String
return System

ReplaceFilenameInCache() public method

public ReplaceFilenameInCache ( String Hash, String Filename ) : String
Hash String
Filename String
return String