eviction_policies
Creates, updates, deletes, gets or lists a eviction_policies
resource.
Overview
Name | eviction_policies |
Type | Resource |
Id | digitalocean.databases.eviction_policies |
Fields
Name | Datatype | Description |
---|---|---|
column_anon | `` |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
databases_get_eviction_policy | SELECT | database_cluster_uuid | To retrieve the configured eviction policy for an existing Redis cluster, send a GET request to /v2/databases/$DATABASE_ID/eviction_policy . The response will be a JSON object with an eviction_policy key. This will be set to a string representing the eviction policy. |
databases_update_eviction_policy | EXEC | database_cluster_uuid, data__eviction_policy | To configure an eviction policy for an existing Redis cluster, send a PUT request to /v2/databases/$DATABASE_ID/eviction_policy specifying the desired policy. |
SELECT
examples
To retrieve the configured eviction policy for an existing Redis cluster, send a GET request to /v2/databases/$DATABASE_ID/eviction_policy
. The response will be a JSON object with an eviction_policy
key. This will be set to a string representing the eviction policy.
SELECT
column_anon
FROM digitalocean.databases.eviction_policies
WHERE database_cluster_uuid = '{{ database_cluster_uuid }}';