You are currently browsing legacy 3.0 version of documentation. Click here to switch to the newest 4.2 version.

We can help you with migration to the latest RavenDB

Contact Us Now
see on GitHub

Commands: GetKeyAsync

GetKeyAsync is used to retrieve an object stored as a configuration item in RavenFS.

Syntax

Task<T> GetKeyAsync<T>(string key);

Parameters
key string The configuration name

Return Value
Task<T> A task that represents the asynchronous operation. The task result is the deserialized object of type T.

Example

FileDescription desc = await store
	.AsyncFilesCommands
	.Configuration
	.GetKeyAsync<FileDescription>("descriptions/intro.avi");