Skip to content

KvProps

Properties for defining a Kv.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-esa-kv

Initializer

using AlibabaCloud.SDK.ROS.CDK.Esa;
new KvProps {
    object Key,
    object Namespace,
    object Value,
    object Expiration = null,
    object ExpirationTtl = null
};

Properties

Name Type Description
Key object Property key: The key name.
Namespace object Property namespace: The name specified when calling [CreatevNamespace] https:\/\/help.aliyun.com\/document_detail\/2850317.html.
Value object Property value: The content of the key.
Expiration object Property expiration: The content of the key, which can be up to 2 MB (2 × 1000 × 1000).
ExpirationTtl object Property expirationTtl: The time when the key-value pair expires, which cannot be earlier than the current time.

KeyRequired

public object Key { get; set; }
  • Type: object

Property key: The key name.

The name can be up to 512 characters in length and cannot contain spaces or backslashes ().


NamespaceRequired

public object Namespace { get; set; }
  • Type: object

Property namespace: The name specified when calling [CreatevNamespace] https:\/\/help.aliyun.com\/document_detail\/2850317.html.


ValueRequired

public object Value { get; set; }
  • Type: object

Property value: The content of the key.

If the content has more than 256 characters in length, the system displays the first 100 and the last 100 characters, and omits the middle part.


ExpirationOptional

public object Expiration { get; set; }
  • Type: object

Property expiration: The content of the key, which can be up to 2 MB (2 × 1000 × 1000).

If the content is larger than 2 MB, call [PutKvWithHighCapacity] https://www.alibabacloud.com/help/en/doc-detail/2850486.html.


ExpirationTtlOptional

public object ExpirationTtl { get; set; }
  • Type: object

Property expirationTtl: The time when the key-value pair expires, which cannot be earlier than the current time.

The value is a timestamp in seconds. If you specify both Expiration and ExpirationTtl, only ExpirationTtl takes effect.