PersistenceStorageGetIntAsync Method

Get int32 by key asynchronously. If the key does not exist or the request fails, the default value will be returned.

Definition

Namespace: Alteruna.Trinity
Assembly: Alteruna.Trinity (in Alteruna.Trinity.dll) Version: 1.3.4+03e8eebec78141d9d3b2022fda2c0ac58d3116b9
C#
public Task<int> GetIntAsync(
	string key,
	int defaultValue = 0
)

Parameters

key  String
 
defaultValue  Int32  (Optional)
 

Return Value

TaskInt32

See Also