Google API Client Library for .NET  1.10.0
Public Member Functions | List of all members
Google.Apis.Util.Store.IDataStore Interface Reference

Stores and manages data objects, where the key is a string and the value is an object. More...

Inheritance diagram for Google.Apis.Util.Store.IDataStore:
Google.Apis.Util.Store.FileDataStore Google.Apis.Util.Store.PasswordVaultDataStore Google.Apis.Util.Store.StorageDataStore Google.Apis.Util.Store.StorageDataStore

Public Member Functions

Task StoreAsync< T > (string key, T value)
 Asynchronously stores the given value for the given key (replacing any existing value). More...
 
Task DeleteAsync< T > (string key)
 Asynchronously deletes the given key. The type is provided here as well because the "real" saved key should contain type information as well, so the data store will be able to store the same key for different types. More...
 
Task< T > GetAsync< T > (string key)
 Asynchronously returns the stored value for the given key or null if not found. More...
 
Task ClearAsync ()
 Asynchronously clears all values in the data store. More...
 

Detailed Description

Stores and manages data objects, where the key is a string and the value is an object.

null keys are not allowed.

Member Function Documentation

Task Google.Apis.Util.Store.IDataStore.ClearAsync ( )
Task Google.Apis.Util.Store.IDataStore.DeleteAsync< T > ( string  key)

Asynchronously deletes the given key. The type is provided here as well because the "real" saved key should contain type information as well, so the data store will be able to store the same key for different types.

Template Parameters
TThe type to delete from the data store.
Parameters
keyThe key to delete.

Implemented in Google.Apis.Util.Store.FileDataStore, Google.Apis.Util.Store.StorageDataStore, Google.Apis.Util.Store.StorageDataStore, and Google.Apis.Util.Store.PasswordVaultDataStore.

Task<T> Google.Apis.Util.Store.IDataStore.GetAsync< T > ( string  key)

Asynchronously returns the stored value for the given key or null if not found.

Template Parameters
TThe type to retrieve from the data store.
Parameters
keyThe key to retrieve its value.
Returns
The stored object.

Implemented in Google.Apis.Util.Store.FileDataStore, Google.Apis.Util.Store.PasswordVaultDataStore, Google.Apis.Util.Store.StorageDataStore, and Google.Apis.Util.Store.StorageDataStore.

Task Google.Apis.Util.Store.IDataStore.StoreAsync< T > ( string  key,
value 
)

Asynchronously stores the given value for the given key (replacing any existing value).

Template Parameters
TThe type to store in the data store.
Parameters
keyThe key.
valueThe value to store.

Implemented in Google.Apis.Util.Store.FileDataStore, Google.Apis.Util.Store.StorageDataStore, Google.Apis.Util.Store.StorageDataStore, and Google.Apis.Util.Store.PasswordVaultDataStore.


The documentation for this interface was generated from the following file: