DigitalOcean-public.v2-new_Databases
Retrieve the Eviction Policy for a Caching or Valkey Cluster
To retrieve the configured eviction policy for an existing Caching or Valkey 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.
get/v2/databases/{database_cluster_uuid}/eviction_policy
Path parameters
database_cluster_uuidstring uuid required
A unique identifier for a database cluster.
Response
A JSON string with a key of eviction_policy.
Example response
{
"eviction_policy": "allkeys_lru"
}