Class NullDataStore
A null datastore. Nothing is stored, nothing is retrievable.
Inheritance
System.Object
NullDataStore
Implements
Google.Apis.Util.Store.IDataStore
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Util.Store
Assembly: Google.Apis.dll
Syntax
public class NullDataStore : IDataStore
Constructors
NullDataStore()
Construct a new null datastore, that stores nothing.
Declaration
public NullDataStore()
Methods
ClearAsync()
Declaration
public Task ClearAsync()
Returns
Type | Description |
---|---|
System. |
DeleteAsync<T>(String)
Declaration
public Task DeleteAsync<T>(string key)
Parameters
Type | Name | Description |
---|---|---|
System. |
key |
Returns
Type | Description |
---|---|
System. |
Type Parameters
Name | Description |
---|---|
T |
GetAsync<T>(String)
Asynchronously returns the stored value for the given key or null
if not found.
This implementation of Google.null
.
Declaration
public Task<T> GetAsync<T>(string key)
Parameters
Type | Name | Description |
---|---|---|
System. |
key | The key to retrieve its value. |
Returns
Type | Description |
---|---|
System. |
Always |
Type Parameters
Name | Description |
---|---|
T | The type to retrieve from the data store. |
StoreAsync<T>(String, T)
Asynchronously stores the given value for the given key (replacing any existing value).
This implementation of Google.
Declaration
public Task StoreAsync<T>(string key, T value)
Parameters
Type | Name | Description |
---|---|---|
System. |
key | The key. |
T | value | The value. |
Returns
Type | Description |
---|---|
System. |
A task that completes immediately. |
Type Parameters
Name | Description |
---|---|
T | The type to store in the data store. |
Implements
Google.Apis.Util.Store.IDataStore