Skip to main content

eviction_policies

Creates, updates, deletes, gets or lists a eviction_policies resource.

Overview

Nameeviction_policies
TypeResource
Iddigitalocean.databases.eviction_policies

Fields

NameDatatypeDescription
column_anon``

Methods

NameAccessible byRequired ParamsDescription
databases_get_eviction_policySELECTdatabase_cluster_uuidTo 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_policyEXECdatabase_cluster_uuid, data__eviction_policyTo 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 }}';