ApsaraCache - 阿里云数据库 Redis 版


BSD
跨平台
C/C++

软件简介

ApsaraCache 基于 Redis 4.0 开发,具有许多功能和性能增强。 ApsaraCache 已被证明在生产环境中非常稳定和高效。

您可以使用 ApsaraCache 作为 Memcached,并且不需要修改客户端代码。 您可以像使用 Redis 一样使用 Memcached 模式中的
ApsaraCache 来保存数据。在短时间内,与开源版本相比,ApsaraCache 的性能提升了 30%。

运行

默认情况下,ApsaraCache 在 Redis 模式下运行。 如果您希望 ApsaraCache 以 Memcached 模式运行,只需添加添加到
redis.conf 中即可。

protocol  memcache

要使用默认配置运行 ApsaraCache,只需键入:

% cd src
% ./redis-server

如果要提供 redis.conf,则必须使用附加参数(配置文件的路径)运行它:

% cd src
% ./redis-server /path/to/redis.conf

通过使用命令行直接传递参数作为选项,可以改变 ApsaraCache 配置。 例子:

% ./redis-server --port 9999 --slaveof 127.0.0.1 6379
% ./redis-server /etc/redis/6379.conf --loglevel debug

redis.conf 中的所有选项也可以使用命名行作为选项支持,具有完全相同的名称。