View a markdown version of this page

開始使用 - Amazon ElastiCache

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

開始使用

使用下列命令安裝 ElastiCache 技能:

npx skills add aws/agent-toolkit-for-aws/skills/specialized-skills/database-skills/amazon-elasticache -g -a <agent-id> --full-depth

將 安裝命令<agent-id>中的 取代為編碼代理程式的識別符。下表列出支援的編碼代理程式的識別符。安裝程式會將來自 AWS Agent Toolkit 儲存庫的 ElastiCache 技能新增至您的編碼代理程式所使用的全域技能目錄,以便用於您的所有專案。

客服人員 <agent-id> 全域技能路徑 專案技能路徑
Claude 程式碼 claude-code ~/.claude/skills/ .claude/skills/
游標 cursor ~/.cursor/skills/ .agents/skills/
GitHub Copilot github-copilot ~/.copilot/skills/ .agents/skills/
Codex codex ~/.codex/skills/ .agents/skills/
Gemini CLI gemini-cli ~/.gemini/skills/ .agents/skills/
Kiro CLI kiro-cli ~/.kiro/skills/ .kiro/skills/
曲線 cline ~/.agents/skills/ .agents/skills/
Goose goose ~/.config/goose/skills/ .goose/skills/
Windsurf windsurf ~/.codeium/windsurf/skills/ .windsurf/skills/

若要改為在本機為單一專案安裝技能,請省略 -g旗標。技能會安裝到上表中列出的專案技能路徑。

注意

技能會與您的 代理程式在本機執行。對於建立或修改 AWS 資源的任務,您的代理程式需要透過 AWS Command Line Interface、環境變數或 IDE 的 AWS 外掛程式設定的 AWS 登入資料。

使用範例

安裝之後,您可以提示代理程式使用 ElastiCache 技能建置 。

下列範例使用「使用 Amazon ElastiCache 技能...」做為字首:

  • 評估工作負載Use the Amazon ElastiCache skill to decide whether ElastiCache is right for my FastAPI app. The app reads heavily from Aurora PostgreSQL and has latency spikes during peak traffic.

  • 建立安全快取Use the Amazon ElastiCache skill to create a Valkey cache in us-east-1 for my ECS service. Use TLS and recommend the right authentication model.

  • 連接應用程式Use the Amazon ElastiCache skill to connect my Lambda function to an existing Valkey cache. Show the VPC, security group, and client code changes.

  • 建置速率限制器Use the Amazon ElastiCache skill to build an API rate limiter with Valkey. I need per-user limits and atomic updates.

  • 新增 GenAI 的語意快取Use the Amazon ElastiCache skill to add semantic caching for Amazon Bedrock responses. Include embedding storage, similarity lookup, thresholding, and fallback behavior.

  • 效能進行故障診斷Use the Amazon ElastiCache skill to pinpoint the cause of high CPU utilization on my cache cluster.

注意

當您的提示描述快取、工作階段或速率限制等相關工作負載時,有些客服人員會自動載入 ElastiCache 技能。如果您的代理程式未自動載入技能,請在提示中包含「使用 ElastiCache 技能」。