C# 클래스 FoundationDB.Storage.Memory.API.MemoryDatabase

In-memory database instance
상속: FdbDatabase
파일 보기 프로젝트 열기: BedeGaming/foundationdb-dotnet-client

공개 메소드들

메소드 설명
BulkLoadAsync ( Slice>.IEnumerable data, bool ordered = false, CancellationToken cancellationToken = default(CancellationToken) ) : Task

Replace the content of the database with existing data.

Any pre-existing data will be removed!

Collect ( ) : void

Trigger a garbage collection of the memory database

If the amount of memory that can be collected is too small, this operation will do nothing.

CreateNew ( ) : MemoryDatabase
CreateNew ( string name ) : MemoryDatabase
CreateNew ( string name, FdbSubspace globalSpace, bool readOnly ) : MemoryDatabase
LoadFromAsync ( string path, CancellationToken cancellationToken ) : Task
SaveSnapshotAsync ( string path, FoundationDB.Storage.Memory.API.MemorySnapshotOptions options = null, CancellationToken cancellationToken = default(CancellationToken) ) : Task

비공개 메소드들

메소드 설명
Debug_Dump ( bool detailed = false ) : void
MemoryDatabase ( IFdbCluster cluster, MemoryDatabaseHandler handler, string name, FdbSubspace globalSpace, IFdbDirectory directory, bool readOnly, bool ownsCluster ) : FoundationDB.Client

메소드 상세

BulkLoadAsync() 공개 메소드

Replace the content of the database with existing data.
Any pre-existing data will be removed!
public BulkLoadAsync ( Slice>.IEnumerable data, bool ordered = false, CancellationToken cancellationToken = default(CancellationToken) ) : Task
data Slice>.IEnumerable Data that will replace the content of the database. The elements do not need to be sorted, but best performance is achieved if all the keys are lexicographically ordered (smallest to largest)
ordered bool
cancellationToken System.Threading.CancellationToken Optionnal cancellation token
리턴 Task

Collect() 공개 메소드

Trigger a garbage collection of the memory database
If the amount of memory that can be collected is too small, this operation will do nothing.
public Collect ( ) : void
리턴 void

CreateNew() 공개 정적인 메소드

public static CreateNew ( ) : MemoryDatabase
리턴 MemoryDatabase

CreateNew() 공개 정적인 메소드

public static CreateNew ( string name ) : MemoryDatabase
name string
리턴 MemoryDatabase

CreateNew() 공개 정적인 메소드

public static CreateNew ( string name, FdbSubspace globalSpace, bool readOnly ) : MemoryDatabase
name string
globalSpace FdbSubspace
readOnly bool
리턴 MemoryDatabase

LoadFromAsync() 공개 정적인 메소드

public static LoadFromAsync ( string path, CancellationToken cancellationToken ) : Task
path string
cancellationToken System.Threading.CancellationToken
리턴 Task

SaveSnapshotAsync() 공개 메소드

public SaveSnapshotAsync ( string path, FoundationDB.Storage.Memory.API.MemorySnapshotOptions options = null, CancellationToken cancellationToken = default(CancellationToken) ) : Task
path string
options FoundationDB.Storage.Memory.API.MemorySnapshotOptions
cancellationToken System.Threading.CancellationToken
리턴 Task