Decrement Method (String, Int64, Int64)

Decrements a long value stored in the cache.

Namespace:  Microsoft.ApplicationServer.Caching
Assembly:  Microsoft.ApplicationServer.Caching.Client (in Microsoft.ApplicationServer.Caching.Client.dll)

public long Decrement(
	string key,
	long value,
	long initialValue
)

Parameters

key
Type: System..::..String
The key of the object stored in the cache. The object must be a long.
value
Type: System..::..Int64
The amount to decrease the stored value.
initialValue
Type: System..::..Int64
The initial value to use if the object does not exist in the cache.

Return Value

Type: System..::..Int64
Returns the decremented Int64 value.
Show: