C# Class BTDB.ChunkCache.DiskChunkCache

Inheritance: IChunkCache, IDisposable
Show file Open project: Bobris/BTDB Class Usage Examples

Public Methods

Method Description
CalcStats ( ) : string
DiskChunkCache ( IFileCollection fileCollection, int keySize, long cacheCapacity ) : System
Dispose ( ) : void
Get ( ByteBuffer key ) : Task
Put ( ByteBuffer key, ByteBuffer content ) : void

Private Methods

Method Description
AllocNewFileGeneration ( ) : long
ClearFileFromCache ( uint fileId ) : void
CompactionCore ( ) : void
FlushCurrentValueFile ( ) : void
LoadContent ( ) : void
PreserveJustMostOftenUsed ( uint fileId ) : void
QuickFinishCompaction ( ) : void
RemoveAllHashIndexAndUnknownFiles ( ) : void
SetNewValueFile ( ) : void
StartNewValueFile ( ) : void
StoreHashIndex ( ) : void

Method Details

CalcStats() public method

public CalcStats ( ) : string
return string

DiskChunkCache() public method

public DiskChunkCache ( IFileCollection fileCollection, int keySize, long cacheCapacity ) : System
fileCollection IFileCollection
keySize int
cacheCapacity long
return System

Dispose() public method

public Dispose ( ) : void
return void

Get() public method

public Get ( ByteBuffer key ) : Task
key ByteBuffer
return Task

Put() public method

public Put ( ByteBuffer key, ByteBuffer content ) : void
key ByteBuffer
content ByteBuffer
return void