The platform API call doesn’t behave right after the TTL expires, even though the refresh endpoint is returning 200. Console throws redis.exceptions.ResponseError: OOM command not allowed when used memory > maxmemory but the BYOC cluster actually has 8GB free. Why’s the cache layer rejecting the SETEX on a fresh token rotation?
token = redis.get(f'gc:oauth:{org_id}')
if not token:
token = requests.post(f'{edge_url}/oauth/token', data=payload).json()
redis.setex(f'gc:oauth:{org_id}', 3500, token)