Note
本文涉及的 SDK 和工具是在 Microsoft Corporation 运行的 Azure 服务中使用的,而在中国, Azure 是由 21Vianet 运行的。 请根据需要参阅中国区 Azure 应用程序开发说明。
Azure Redis 缓存可让你访问 Azure.cn 管理的专用 Redis 缓存。 可从 Azure 内部的任何应用程序访问缓存。
本主题说明如何将 Azure Redis 缓存与 Java 配合使用。
先决条件
Jedis - Redis 的 Java 客户端
本教程使用 Jedis,但可以使用 http://redis.io/clients中列出的任何 Java 客户端。
在 Azure 上创建 Redis 缓存
若要创建缓存,请先登录到 Azure 门户,然后单击“新建” > “数据库” > “Redis 缓存”。
Note
如果没有 Azure 帐户,只需花费几分钟就能建立一个 Azure 帐户。