Skip to content

Commit

Permalink
Update old links for modules-api-ref.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dwdougherty committed Aug 20, 2024
1 parent 6ceadfb commit 0a2b0e8
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
---
Expand Down
2 changes: 1 addition & 1 deletion deps/hiredis/async.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
8 changes: 4 additions & 4 deletions redis.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
#
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions sentinel.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/latency.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 <milliseconds>.\" 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 <milliseconds>.\" 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;
}

Expand Down
16 changes: 8 additions & 8 deletions src/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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. */
Expand Down Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion src/notify.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion utils/whatisdoing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0a2b0e8

Please sign in to comment.