Renamed 'Randomkey' to 'RandomKey' to follow PascalCase convention for exported methods. Added more clear definition for the RANDOMKEY command.

This commit is contained in:
Kelvin Clement Mwinuka
2024-08-18 01:50:07 +08:00
parent 86630ce4f4
commit e5977ec5ef
3 changed files with 31 additions and 32 deletions
+1 -1
View File
@@ -968,7 +968,7 @@ Delete all the keys in the currently selected database. This command is always s
Command: "randomkey",
Module: constants.GenericModule,
Categories: []string{constants.KeyspaceCategory, constants.ReadCategory, constants.SlowCategory},
Description: "(RANDOMKEY) Returns a random key.",
Description: "(RANDOMKEY) Returns a random key from the current selected database.",
Sync: false,
KeyExtractionFunc: randomKeyFunc,
HandlerFunc: handleRandomkey,