diff --git a/README.md b/README.md index f6b4844159b..52afab6fa54 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Another good example is to think of Redis as a more complex version of memcached If you want to know more, this is a list of selected starting points: -* Introduction to Redis data types. https://redis.io/topics/data-types-intro +* Introduction to Redis data types. https://redis.io/docs/latest/develop/data-types/ * Try Redis directly inside your browser. https://try.redis.io * The full list of Redis commands. https://redis.io/commands * There is much more inside the official Redis documentation. https://redis.io/documentation @@ -494,7 +494,7 @@ Other C files * `dict.c` is an implementation of a non-blocking hash table which rehashes incrementally. * `cluster.c` implements the Redis Cluster. Probably a good read only after being very familiar with the rest of the Redis code base. If you want to read `cluster.c` make sure to read the [Redis Cluster specification][4]. -[4]: https://redis.io/topics/cluster-spec +[4]: https://redis.io/docs/latest/operate/oss_and_stack/reference/cluster-spec/ Anatomy of a Redis command --- diff --git a/deps/hiredis/async.c b/deps/hiredis/async.c index 3d39cfaf819..ac56353dd0d 100644 --- a/deps/hiredis/async.c +++ b/deps/hiredis/async.c @@ -478,7 +478,7 @@ static int __redisGetSubscribeCallback(redisAsyncContext *ac, redisReply *reply, /* Match reply with the expected format of a pushed message. * The type and number of elements (3 to 4) are specified at: - * https://redis.io/topics/pubsub#format-of-pushed-messages */ + * https://redis.io/docs/latest/develop/interact/pubsub/#format-of-pushed-messages */ if ((reply->type == REDIS_REPLY_ARRAY && !(c->flags & REDIS_SUPPORTS_PUSH) && reply->elements >= 3) || reply->type == REDIS_REPLY_PUSH) { assert(reply->element[0]->type == REDIS_REPLY_STRING); diff --git a/redis.conf b/redis.conf index a95e2ed37e4..aadb4acb08b 100644 --- a/redis.conf +++ b/redis.conf @@ -838,7 +838,7 @@ replica-priority 100 # this is used in order to send invalidation messages to clients. Please # check this page to understand more about the feature: # -# https://redis.io/topics/client-side-caching +# https://redis.io/docs/latest/develop/use/client-side-caching/ # # When tracking is enabled for a client, all the read only queries are assumed # to be cached: this will force Redis to store information in the invalidation @@ -1016,7 +1016,7 @@ replica-priority 100 # * stream - Data type: streams related. # # For more information about ACL configuration please refer to -# the Redis web site at https://redis.io/topics/acl +# the Redis web site at https://redis.io/docs/latest/operate/oss_and_stack/management/security/acl/ # ACL LOG # @@ -1393,7 +1393,7 @@ disable-thp yes # restarting the server can lead to data loss. A conversion needs to be done # by setting it via CONFIG command on a live server first. # -# Please check https://redis.io/topics/persistence for more information. +# Please check https://redis.io/docs/latest/operate/oss_and_stack/management/persistence/ for more information. appendonly no @@ -1880,7 +1880,7 @@ latency-monitor-threshold 0 ############################# EVENT NOTIFICATION ############################## # Redis can notify Pub/Sub clients about events happening in the key space. -# This feature is documented at https://redis.io/topics/notifications +# This feature is documented at https://redis.io/docs/latest/develop/use/keyspace-notifications/ # # For instance if keyspace events notification is enabled, and a client # performs a DEL operation on key "foo" stored in the Database 0, two diff --git a/sentinel.conf b/sentinel.conf index b7b3604f0e0..c7ce1cba73c 100644 --- a/sentinel.conf +++ b/sentinel.conf @@ -133,7 +133,7 @@ sentinel monitor mymaster 127.0.0.1 6379 2 sentinel down-after-milliseconds mymaster 30000 # IMPORTANT NOTE: starting with Redis 6.2 ACL capability is supported for -# Sentinel mode, please refer to the Redis website https://redis.io/topics/acl +# Sentinel mode, please refer to the Redis website https://redis.io/docs/latest/operate/oss_and_stack/management/security/acl/ # for more details. # Sentinel's ACL users are defined in the following format: @@ -145,7 +145,7 @@ sentinel down-after-milliseconds mymaster 30000 # user worker +@admin +@connection ~* on >ffa9203c493aa99 # # For more information about ACL configuration please refer to the Redis -# website at https://redis.io/topics/acl and redis server configuration +# website at https://redis.io/docs/latest/operate/oss_and_stack/management/security/acl/ and redis server configuration # template redis.conf. # ACL LOG @@ -174,7 +174,7 @@ acllog-max-len 128 # so Sentinel will try to authenticate with the same password to all the # other Sentinels. So you need to configure all your Sentinels in a given # group with the same "requirepass" password. Check the following documentation -# for more info: https://redis.io/topics/sentinel +# for more info: https://redis.io/docs/latest/operate/oss_and_stack/management/sentinel/ # # IMPORTANT NOTE: starting with Redis 6.2 "requirepass" is a compatibility # layer on top of the ACL system. The option effect will be just setting diff --git a/src/latency.c b/src/latency.c index db4c9044dd2..69c9f4e5fb1 100644 --- a/src/latency.c +++ b/src/latency.c @@ -203,7 +203,7 @@ sds createLatencyReport(void) { if (dictSize(server.latency_events) == 0 && server.latency_monitor_threshold == 0) { - report = sdscat(report,"I'm sorry, Dave, I can't do that. Latency monitoring is disabled in this Redis instance. You may use \"CONFIG SET latency-monitor-threshold .\" in order to enable it. If we weren't in a deep space mission I'd suggest to take a look at https://redis.io/topics/latency-monitor.\n"); + report = sdscat(report,"I'm sorry, Dave, I can't do that. Latency monitoring is disabled in this Redis instance. You may use \"CONFIG SET latency-monitor-threshold .\" in order to enable it. If we weren't in a deep space mission I'd suggest to take a look at https://redis.io/docs/latest/operate/oss_and_stack/management/optimization/latency-monitor.\n"); return report; } diff --git a/src/module.c b/src/module.c index ced079f2f26..157dc15095e 100644 --- a/src/module.c +++ b/src/module.c @@ -983,7 +983,7 @@ int moduleGetCommandChannelsViaAPI(struct redisCommand *cmd, robj **argv, int ar * * These functions are used to implement custom Redis commands. * - * For examples, see https://redis.io/topics/modules-intro. + * For examples, see https://redis.io/docs/latest/develop/reference/modules/. * -------------------------------------------------------------------------- */ /* Return non-zero if a module command, that was declared with the @@ -1197,7 +1197,7 @@ RedisModuleCommand *moduleCreateCommandProxy(struct RedisModule *module, sds dec * from the same input arguments and key values. * Starting from Redis 7.0 this flag has been deprecated. * Declaring a command as "random" can be done using - * command tips, see https://redis.io/topics/command-tips. + * command tips, see https://redis.io/docs/latest/develop/reference/command-tips/. * * **"allow-stale"**: The command is allowed to run on slaves that don't * serve stale data. Don't use if you don't know what * this means. @@ -1587,7 +1587,7 @@ int RM_SetCommandACLCategories(RedisModuleCommand *command, const char *aclflags * both strings set to NULL. * * - `tips`: A string of space-separated tips regarding this command, meant for - * clients and proxies. See https://redis.io/topics/command-tips. + * clients and proxies. See https://redis.io/docs/latest/develop/reference/command-tips/. * * - `arity`: Number of arguments, including the command name itself. A positive * number specifies an exact number of arguments and a negative number @@ -5426,7 +5426,7 @@ int RM_HashGet(RedisModuleKey *key, int flags, ...) { /* -------------------------------------------------------------------------- * ## Key API for Stream type * - * For an introduction to streams, see https://redis.io/topics/streams-intro. + * For an introduction to streams, see https://redis.io/docs/latest/develop/data-types/streams/. * * The type RedisModuleStreamID, which is used in stream functions, is a struct * with two 64-bit fields and is defined as @@ -6299,7 +6299,7 @@ robj **moduleCreateArgvFromUserFormat(const char *cmdname, const char *fmt, int * // Do something with myval. * } * - * This API is documented here: https://redis.io/topics/modules-intro + * This API is documented here: https://redis.io/docs/latest/develop/reference/modules/ */ RedisModuleCallReply *RM_Call(RedisModuleCtx *ctx, const char *cmdname, const char *fmt, ...) { client *c = NULL; @@ -6809,7 +6809,7 @@ robj *moduleTypeDupOrReply(client *c, robj *fromkey, robj *tokey, int todb, robj /* Register a new data type exported by the module. The parameters are the * following. Please for in depth documentation check the modules API - * documentation, especially https://redis.io/topics/modules-native-types. + * documentation, especially https://redis.io/docs/latest/develop/reference/modules/modules-native-types/. * * * **name**: A 9 characters data type name that MUST be unique in the Redis * Modules ecosystem. Be creative... and there will be no collisions. Use @@ -7698,7 +7698,7 @@ void RM_LatencyAddSample(const char *event, mstime_t latency) { * ## Blocking clients from modules * * For a guide about blocking commands in modules, see - * https://redis.io/topics/modules-blocking-ops. + * https://redis.io/docs/latest/develop/reference/modules/modules-blocking-ops/. * -------------------------------------------------------------------------- */ /* Returns 1 if the client already in the moduleUnblocked list, 0 otherwise. */ @@ -8710,7 +8710,7 @@ void moduleReleaseGIL(void) { * runs is dangerous and discouraged. In order to react to key space events with * write actions, please refer to `RM_AddPostNotificationJob`. * - * See https://redis.io/topics/notifications for more information. + * See https://redis.io/docs/latest/develop/use/keyspace-notifications/ for more information. */ int RM_SubscribeToKeyspaceEvents(RedisModuleCtx *ctx, int types, RedisModuleNotificationFunc callback) { RedisModuleKeyspaceSubscriber *sub = zmalloc(sizeof(*sub)); diff --git a/src/notify.c b/src/notify.c index 2377166995c..8c8249131e5 100644 --- a/src/notify.c +++ b/src/notify.c @@ -9,7 +9,7 @@ #include "server.h" /* This file implements keyspace events notification via Pub/Sub and - * described at https://redis.io/topics/notifications. */ + * described at https://redis.io/docs/latest/develop/use/keyspace-notifications/. */ /* Turn a string representing notification classes into an integer * representing notification classes flags xored. diff --git a/utils/whatisdoing.sh b/utils/whatisdoing.sh index 68d7f7cca66..09c0b081f93 100755 --- a/utils/whatisdoing.sh +++ b/utils/whatisdoing.sh @@ -4,7 +4,7 @@ # Software Watchdog, which provides a similar functionality but in # a more reliable / easy to use way. # -# Check https://redis.io/topics/latency for more information. +# Check https://redis.io/docs/latest/operate/oss_and_stack/management/optimization/latency/ for more information. #!/bin/bash nsamples=1