DigitalOcean-public.v2-new_Databases
Configure the Eviction Policy for a Caching or Valkey Cluster
To configure an eviction policy for an existing Caching or Valkey cluster, send a PUT request to /v2/databases/$DATABASE_ID/eviction_policy specifying the desired policy.
put/v2/databases/{database_cluster_uuid}/eviction_policy
Path parameters
database_cluster_uuidstring uuid required
A unique identifier for a database cluster.
Request body
Example request
{
"eviction_policy": "allkeys_lru"
}Response
The action was successful and the response body is empty.