C# Class BTDB.ChunkCache.DiskChunkCache

Inheritance: IChunkCache, IDisposable
Afficher le fichier Open project: Bobris/BTDB Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public CalcStats ( ) : string
Résultat string

DiskChunkCache() public méthode

public DiskChunkCache ( IFileCollection fileCollection, int keySize, long cacheCapacity ) : System
fileCollection IFileCollection
keySize int
cacheCapacity long
Résultat System

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Get() public méthode

public Get ( ByteBuffer key ) : Task
key ByteBuffer
Résultat Task

Put() public méthode

public Put ( ByteBuffer key, ByteBuffer content ) : void
key ByteBuffer
content ByteBuffer
Résultat void