 | TimeSpanExtensionsToTtl Method (UInt32) |
Converts a duration expressed as milliseconds to a unix-based TTL.
Namespace:
Couchbase.Utils
Assembly:
Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 3.0.0-local-202004010202+047adc0837bfc29c0b8cce4322194a09afd8ea18
Syntaxpublic static uint ToTtl(
this uint duration
)
Parameters
- duration
- Type: SystemUInt32
Milliseconds to use as TTL.
Return Value
Type:
UInt32The TTL, expressed as a unix-based TTL in milliseconds.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
UInt32. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also