content large_stringlengths 3 20.5k | url large_stringlengths 54 193 | branch large_stringclasses 4
values | source large_stringclasses 42
values | embeddings listlengths 384 384 | score float64 -0.21 0.65 |
|---|---|---|---|---|---|
and is terminated by CRLF (i.e., `\r\n`). Simple strings transmit short, non-binary strings with minimal overhead. For example, many Redis commands reply with just "OK" on success. The encoding of this Simple String is the following 5 bytes: +OK\r\n When Redis replies with a simple string, a client library should retur... | https://github.com/redis/redis-doc/blob/master//docs/reference/protocol-spec.md | master | redis | [
-0.05260300263762474,
0.017834512516856194,
-0.020822560414671898,
0.002565629780292511,
-0.02247440814971924,
-0.08837635070085526,
0.02476228028535843,
0.09851443022489548,
0.009116845205426216,
0.022858481854200363,
-0.02401932142674923,
0.01197509653866291,
0.060059159994125366,
-0.042... | 0.233482 |
represents a single binary string. The string can be of any size, but by default, Redis limits it to 512 MB (see the `proto-max-bulk-len` configuration directive). RESP encodes bulk strings in the following way: $\r\n\r\n \* The dollar sign (`$`) as the first byte. \* One or more decimal digits (`0`..`9`) as the string... | https://github.com/redis/redis-doc/blob/master//docs/reference/protocol-spec.md | master | redis | [
-0.058831021189689636,
-0.004544292576611042,
-0.0718265026807785,
-0.046703848987817764,
-0.0217334795743227,
-0.11727555096149445,
0.020773932337760925,
0.061817578971385956,
0.026395810768008232,
-0.009307368658483028,
0.002272441051900387,
-0.05583248287439346,
0.04880911484360695,
-0.... | 0.18884 |
data type for [null values](#nulls), RESP2 has no such type. Instead, due to historical reasons, the representation of null values in RESP2 is via predetermined forms of the [Bulk Strings](#bulk-strings) and [arrays](#arrays) types. Null arrays exist as an alternative way of representing a null value. For instance, whe... | https://github.com/redis/redis-doc/blob/master//docs/reference/protocol-spec.md | master | redis | [
-0.04089773818850517,
0.011157829314470291,
-0.07673699408769608,
0.04991675540804863,
-0.05675448104739189,
-0.06823072582483292,
0.03375662490725517,
0.039507634937763214,
0.011878274381160736,
-0.014456952922046185,
-0.003667013719677925,
-0.0037886665668338537,
0.031541336327791214,
-0... | 0.13425 |
byte. \* An optional plus (`+`) or minus (`-`) as the sign. \* One or more decimal digits (`0`..`9`) as an unsigned, base-10 value. \* The CRLF terminator. Example: (3492890328409238509324850943850943825024385\r\n Big numbers can be positive or negative but can't include fractionals. Client libraries written in languag... | https://github.com/redis/redis-doc/blob/master//docs/reference/protocol-spec.md | master | redis | [
-0.06987183541059494,
0.008453217335045338,
-0.02462945692241192,
-0.01899757981300354,
-0.051748014986515045,
-0.07473351061344147,
0.056731611490249634,
0.09142281860113144,
0.0042370581068098545,
-0.0067867496982216835,
-0.07445787638425827,
-0.031567685306072235,
0.07623425871133804,
0... | 0.082539 |
example) will likely return an array along with type information that indicates to the caller that it is a dictionary. {{% alert title="Map pattern in RESP2" color="info" %}} RESP2 doesn't have a map type. A map in RESP2 is represented by a flat array containing the keys and the values. The first element is a key, foll... | https://github.com/redis/redis-doc/blob/master//docs/reference/protocol-spec.md | master | redis | [
-0.01629612408578396,
0.042663443833589554,
-0.029261576011776924,
-0.014973869547247887,
-0.044719796627759933,
-0.06672178208827972,
0.13184486329555511,
0.03575354442000389,
-0.04846997931599617,
-0.05234604701399803,
-0.03581870347261429,
-0.0034323588479310274,
0.11162229627370834,
-0... | 0.128695 |
credentials in the command's optional `!AUTH` clause: Client: HELLO 3 AUTH default mypassword Server: -ERR invalid password (the connection remains in RESP2 mode) A successful reply to the `HELLO` command is a map reply. The information in the reply is partly server-dependent, but certain fields are mandatory for all t... | https://github.com/redis/redis-doc/blob/master//docs/reference/protocol-spec.md | master | redis | [
-0.07541628181934357,
-0.047371841967105865,
-0.04719775915145874,
-0.007348388433456421,
-0.021380331367254257,
-0.06989736109972,
0.01651320978999138,
0.023573679849505424,
0.028495140373706818,
0.05751636251807213,
-0.0423722006380558,
-0.01059566717594862,
0.06459154933691025,
-0.01358... | 0.140941 |
operation per character while at the same time scanning for the CR character. Example (in C): ```c #include int main(void) { unsigned char \*p = "$123\r\n"; int len = 0; p++; while(\*p != '\r') { len = (len\*10)+(\*p - '0'); p++; } /\* Now p points at '\r', and the len is in bulk\_len. \*/ printf("%d\n", len); return 0... | https://github.com/redis/redis-doc/blob/master//docs/reference/protocol-spec.md | master | redis | [
-0.03620944917201996,
0.005088798236101866,
-0.06838404387235641,
-0.011479857377707958,
-0.057966236025094986,
-0.05560837313532829,
0.06753697246313095,
0.040874797850847244,
0.03735164552927017,
-0.03239898011088371,
0.0216902494430542,
0.035947173833847046,
0.07712402939796448,
-0.0252... | 0.101585 |
The `COMMAND DOCS` command returns documentation-focused information about available Redis commands. The map reply that the command returns includes the \_arguments\_ key. This key stores an array that describes the command's arguments. Every element in the \_arguments\_ array is a map with the following fields: \* \*\... | https://github.com/redis/redis-doc/blob/master//docs/reference/command-arguments.md | master | redis | [
-0.029373453930020332,
0.018283464014530182,
-0.0829152911901474,
0.07667072117328644,
-0.031019901856780052,
-0.05728526413440704,
0.04900607466697693,
0.02821933664381504,
0.02931513823568821,
-0.05011569336056709,
-0.03901183605194092,
-0.027222277596592903,
0.04734686017036438,
-0.0393... | 0.192421 |
\_=\_ and \_~\_, is a \_pure-token\_. 3. \*\*threshold:\*\* this nested argument is a \_string\_. 4. \*\*count:\*\* this nested argument is an optional \_integer\_ with a \_token\_ (\_LIMIT\_). Here's `XADD`'s arguments array: ``` 1) 1) "name" 2) "key" 3) "type" 4) "key" 5) "value" 6) "key" 2) 1) "name" 2) "nomkstream"... | https://github.com/redis/redis-doc/blob/master//docs/reference/command-arguments.md | master | redis | [
0.01242564246058464,
0.03773995116353035,
-0.03473800793290138,
-0.055079083889722824,
-0.06820499151945114,
-0.02610781416296959,
0.1456230878829956,
0.03654512017965317,
0.00003885701880790293,
0.005210602190345526,
0.03600156679749489,
-0.14254572987556458,
0.05754195898771286,
-0.02889... | 0.129478 |
\*\*Note: this document was written by the creator of Redis, Salvatore Sanfilippo, early in the development of Redis (c. 2010). Virtual Memory has been deprecated since Redis 2.6, so this documentation is here only for historical interest.\*\* The implementation of Redis strings is contained in `sds.c` (`sds` stands fo... | https://github.com/redis/redis-doc/blob/master//docs/reference/internals/internals-sds.md | master | redis | [
-0.05064210668206215,
0.009385285899043083,
-0.07440980523824692,
0.009315792471170425,
-0.027175499126315117,
-0.04019835218787193,
0.042222633957862854,
0.08978906273841858,
0.04948321729898453,
-0.029019854962825775,
0.015232691541314125,
0.018885141238570213,
0.001721127307973802,
-0.0... | 0.222327 |
\*\*Note: this document was written by the creator of Redis, Salvatore Sanfilippo, early in the development of Redis (c. 2010). Virtual Memory has been deprecated since Redis 2.6, so this documentation is here only for historical interest.\*\* This document details the internals of the Redis Virtual Memory subsystem pr... | https://github.com/redis/redis-doc/blob/master//docs/reference/internals/internals-vm.md | master | redis | [
-0.04349333047866821,
-0.00021594230202026665,
-0.09030279517173767,
0.03234640881419182,
-0.03631759434938431,
-0.02797015942633152,
0.07220949977636337,
0.060186803340911865,
0.04261717572808266,
0.01154419220983982,
0.010894381441175938,
0.0015659481287002563,
0.012867056764662266,
-0.0... | 0.203811 |
an object is swapped on disk (`REDIS\_VM\_SWAPPED` or `REDIS\_VM\_LOADING`), how do we know where it is stored, what type it is, and so forth? That's simple: the \_vtype\_ field is set to the original type of the Redis object swapped, while the \_vm\_ field (that is a \_redisObjectVM\_ structure) holds information abou... | https://github.com/redis/redis-doc/blob/master//docs/reference/internals/internals-vm.md | master | redis | [
-0.012359022162854671,
0.03704283758997917,
-0.059611402451992035,
0.041747331619262695,
-0.005956894718110561,
-0.014044762589037418,
0.0019985847175121307,
0.029191600158810616,
0.04015525430440903,
0.010987788438796997,
0.0021790352184325457,
0.0555824413895607,
-0.06014055758714676,
-0... | 0.199136 |
page table. Transferring objects from memory to swap --- In order to transfer an object from memory to disk we need to perform the following steps (assuming non threaded VM, just a simple blocking approach): \* Find how many pages are needed in order to store this object on the swap file. This is trivially accomplished... | https://github.com/redis/redis-doc/blob/master//docs/reference/internals/internals-vm.md | master | redis | [
-0.013706705532968044,
0.0016711772186681628,
-0.08126762509346008,
0.030689775943756104,
-0.03492421656847,
0.019069762900471687,
-0.0355260893702507,
0.014918163418769836,
-0.0323089063167572,
0.1221088394522667,
-0.01857648603618145,
-0.0032303291372954845,
0.05389619991183281,
-0.05287... | 0.057263 |
parameter is very important as it is used in order to trigger swapping: Redis will try to swap objects only if it is using more memory than the max memory setting, otherwise there is no need to swap as we are matching the user requested memory usage. Blocking VM swapping --- Swapping of object from memory to disk happe... | https://github.com/redis/redis-doc/blob/master//docs/reference/internals/internals-vm.md | master | redis | [
-0.038245104253292084,
0.009506060741841793,
-0.08834079653024673,
0.05433120205998421,
-0.03525989502668381,
-0.02429206855595112,
0.06809063255786896,
0.04521336406469345,
0.030445074662566185,
0.032850947231054306,
0.01578894816339016,
0.016768459230661392,
-0.023496391251683235,
-0.059... | 0.156473 |
loading of the key from the swap file to memory. So this is what happens: \* The user calls some command having as argument a swapped key \* The command implementation calls the lookup function \* The lookup function search for the key in the top level hash table. If the value associated with the requested key is swapp... | https://github.com/redis/redis-doc/blob/master//docs/reference/internals/internals-vm.md | master | redis | [
-0.0426691398024559,
-0.013047905638813972,
-0.0517345629632473,
0.019763080403208733,
-0.03637298196554184,
-0.025048615410923958,
0.023439422249794006,
0.019251404330134392,
0.025976689532399178,
0.06914304196834564,
-0.0009370172047056258,
0.07102136313915253,
0.008644158951938152,
-0.1... | 0.060739 |
but for real-time usage one of the good points of Redis is the low latency. The blocking VM will have bad latency behaviors as when a client is accessing a swapped out value, or when Redis needs to swap out values, no other clients will be served in the meantime. Swapping out keys should happen in background. Similarly... | https://github.com/redis/redis-doc/blob/master//docs/reference/internals/internals-vm.md | master | redis | [
-0.07768827676773071,
0.01806946098804474,
-0.050118762999773026,
0.007408175151795149,
-0.017009779810905457,
-0.028066759929060936,
0.0022787449415773153,
-0.0242221150547266,
0.031134676188230515,
0.028149841353297234,
0.025696296244859695,
0.035985227674245834,
-0.06470099836587906,
-0... | 0.144853 |
this key \*/ robj \*val; /\* the value to swap for REDIS\_IOREQ\_\*\_SWAP, otherwise this \* field is populated by the I/O thread for REDIS\_IOREQ\_LOAD. \*/ off\_t page; /\* Swap page where to read/write the object \*/ off\_t pages; /\* Swap pages needed to save object. PREPARE\_SWAP return val \*/ int canceled; /\* T... | https://github.com/redis/redis-doc/blob/master//docs/reference/internals/internals-vm.md | master | redis | [
-0.0948999673128128,
0.01134508941322565,
-0.06404252350330353,
0.015129880048334599,
-0.06066717579960823,
-0.05692111328244209,
0.03313390165567398,
0.0035066399723291397,
0.0250468160957098,
0.03714970871806145,
0.007622784469276667,
0.03898731619119644,
0.004779832437634468,
-0.1203180... | 0.232864 |
using an UNIX pipe. The pipe file descriptor has a readable event associated in the main thread event loop, that is the function `vmThreadedIOCompletedJob`. If this function detects that all the values needed for a blocked client were loaded, the client is restarted and the original command called. So you can think of ... | https://github.com/redis/redis-doc/blob/master//docs/reference/internals/internals-vm.md | master | redis | [
-0.06834836304187775,
0.050726357847452164,
0.015265511348843575,
-0.009827486239373684,
-0.021384764462709427,
-0.031237145885825157,
-0.005641529336571693,
-0.01559926476329565,
0.05449619144201279,
0.021681854501366615,
0.01141747459769249,
0.05387980490922928,
-0.060090430080890656,
-0... | 0.112957 |
do is waiting for the item to move to the next queue in a \*blocking way\*. Fortunately this condition happens very rarely so it's not a performance problem. \* If the job is in the processed queue, we just mark it as \_canceled\_ marking setting the `canceled` field to 1 in the iojob structure. The function processing... | https://github.com/redis/redis-doc/blob/master//docs/reference/internals/internals-vm.md | master | redis | [
-0.1430118978023529,
0.06810171902179718,
0.030760299414396286,
0.03439471125602722,
-0.01495109312236309,
-0.08920656889677048,
0.0745878666639328,
-0.10027662664651871,
0.03160194307565689,
0.04977250471711159,
0.0034570973366498947,
0.06014533340930939,
-0.032499294728040695,
-0.0762068... | 0.143032 |
--- title: "Event library" linkTitle: "Event library" weight: 1 description: What's an event library, and how was the original Redis event library implemented? aliases: - /topics/internals-eventlib - /topics/internals-rediseventlib --- \*\*Note: this document was written by the creator of Redis, Salvatore Sanfilippo, ... | https://github.com/redis/redis-doc/blob/master//docs/reference/internals/internals-rediseventlib.md | master | redis | [
-0.07946261018514633,
-0.026863224804401398,
-0.032044682651758194,
-0.0008247701334767044,
0.018004760146141052,
-0.044109150767326355,
0.07108035683631897,
0.00048639479791745543,
0.08819431811571121,
0.0028994237072765827,
-0.0309982281178236,
0.03757124021649361,
-0.06126116216182709,
... | 0.214931 |
`NULL`. \* `finalizerProc`: Pointer to the function that has to be called before the timed event is removed from the list of timed events. `initServer` calls `aeCreateTimeEvent` to add a timed event to `timeEventHead` field of `server.el`. `timeEventHead` is a pointer to a list of such timed events. The call to `aeCrea... | https://github.com/redis/redis-doc/blob/master//docs/reference/internals/internals-rediseventlib.md | master | redis | [
-0.0663515105843544,
0.04509318992495537,
-0.07067763805389404,
0.00034175949986092746,
0.027639256790280342,
-0.050140973180532455,
0.08215092122554779,
0.05605114623904228,
0.08319894969463348,
0.004672701004892588,
0.02724483422935009,
-0.048948634415864944,
-0.04443027824163437,
-0.049... | 0.136455 |
elapsed `processTimeEvents` calls the registered callback. In this case it calls the only timed event callback registered, that is, `redis.c:serverCron`. The callback returns the time in milliseconds after which the callback must be called again. This change is recorded via a call to `ae.c:aeAddMilliSeconds` and will b... | https://github.com/redis/redis-doc/blob/master//docs/reference/internals/internals-rediseventlib.md | master | redis | [
-0.05744238197803497,
-0.01393358688801527,
-0.0810294970870018,
0.03033297136425972,
0.00853127520531416,
-0.07073201984167099,
0.07100023329257965,
0.033918801695108414,
0.11834223568439484,
-0.06877005100250244,
0.0103924460709095,
-0.0009639541385695338,
-0.07896068692207336,
-0.064534... | 0.091169 |
\*\*Note: this document was written by the creator of Redis, Salvatore Sanfilippo, early in the development of Redis (c. 2013), as part of a series of design drafts. This is preserved for historical interest.\*\* # Redis Design Draft 2 -- RDB version 7 info fields \* Author: Salvatore Sanfilippo `antirez@gmail.com` \* ... | https://github.com/redis/redis-doc/blob/master//docs/reference/internals/rdd.md | master | redis | [
-0.06286967545747757,
0.02536400593817234,
-0.059835996478796005,
0.015086316503584385,
-0.007469965610653162,
-0.001336983172222972,
-0.0418534092605114,
0.028319332748651505,
-0.022641632705926895,
0.03146017715334892,
-0.051149193197488785,
0.02723921649158001,
0.047704823315143585,
-0.... | 0.078497 |
Info field 2 -- Redis version This field represents a null-terminated string containing the Redis version that generated the file, as displayed in the Redis version INFO field. | https://github.com/redis/redis-doc/blob/master//docs/reference/internals/rdd.md | master | redis | [
0.012343809008598328,
0.043793898075819016,
-0.058785758912563324,
-0.011266023851931095,
0.07140875607728958,
-0.05197611451148987,
0.007238847203552723,
-0.006547168362885714,
0.03948230296373367,
-0.03709215670824051,
0.04417946934700012,
0.004625075496733189,
-0.0005059869727119803,
-0... | 0.09336 |
## Sections \* [Heap allocation raw functions](#section-heap-allocation-raw-functions) \* [Commands API](#section-commands-api) \* [Module information and time measurement](#section-module-information-and-time-measurement) \* [Automatic memory management for modules](#section-automatic-memory-management-for-modules) \*... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.037506211549043655,
0.01607716828584671,
-0.0668279230594635,
0.019030723720788956,
-0.010392504744231701,
-0.05912342295050621,
0.01966010592877865,
0.014859856106340885,
-0.04782146215438843,
0.059128399938344955,
0.00808653049170971,
-0.02605033479630947,
0.08772391825914383,
-0.0149... | 0.102858 |
## Commands API These functions are used to implement custom Redis commands. For examples, see [https://redis.io/topics/modules-intro](https://redis.io/topics/modules-intro). ### `RedisModule\_IsKeysPositionRequest` int RedisModule\_IsKeysPositionRequest(RedisModuleCtx \*ctx); \*\*Available since:\*\* 4.0.0 Return non-... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.02470935881137848,
-0.009478028863668442,
-0.09412279725074768,
0.0014329425757750869,
-0.04842584952712059,
-0.0676325112581253,
0.08061137795448303,
0.03527620807290077,
0.020252492278814316,
-0.006907612085342407,
0.04916864633560181,
-0.01557567622512579,
0.07292863726615906,
-0.065... | 0.137893 |
`REDISMODULE\_OK` is returned and the new command is registered. This function must be called during the initialization of the module inside the `RedisModule\_OnLoad()` function. Calling this function outside of the initialization function is not defined. The command function type is the following: int MyCommand\_Redis... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
0.0026461740490049124,
-0.02353201061487198,
-0.16057220101356506,
0.07082165032625198,
-0.0860043540596962,
-0.07541802525520325,
0.1002938374876976,
0.047168176621198654,
-0.06619437783956528,
-0.039144162088632584,
0.04566536471247673,
-0.05351802334189415,
0.019329547882080078,
-0.0413... | 0.141522 |
numbers refer to counting backwards from the last argument (-1 means the last argument provided) 0 for commands with no keys. \* `keystep`: Step between first and last key indexes. 0 for commands with no keys. This information is used by ACL, Cluster and the `COMMAND` command. NOTE: The scheme described above serves a ... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.013391117565333843,
-0.0005049251485615969,
-0.10125773400068283,
0.04313870891928673,
-0.0918155312538147,
0.02571188099682331,
0.0882757231593132,
0.013733922503888607,
-0.03455185890197754,
-0.0477023608982563,
0.022102251648902893,
-0.09991106390953064,
0.059374600648880005,
-0.0701... | 0.098959 |
versions. Always set this field to `REDISMODULE\_COMMAND\_INFO\_VERSION`. - `summary`: A short description of the command (optional). - `complexity`: Complexity description (optional). - `since`: The version where the command was introduced (optional). Note: The version specified should be the module's, not Redis versi... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.0008072893251664937,
0.02400384470820427,
-0.08930256217718124,
0.010174552910029888,
-0.010892820544540882,
-0.05978775396943092,
0.01706196740269661,
0.0009046784252859652,
-0.001624214113689959,
-0.02927219867706299,
-0.013735047541558743,
0.03196415677666664,
0.0005563125014305115,
... | 0.160937 |
searching. Can be negative, which means start search from the end, in reverse. Example: -2 means to start in reverse from the penultimate argument. (`REDISMODULE\_KSPEC\_BS\_KEYWORD` only.) \* `find\_keys\_type`: After the "begin search", this describes which arguments are keys. The strategies are: \* `REDISMODULE\_KSP... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.02577560767531395,
-0.012002982199192047,
-0.05289790779352188,
0.02510414645075798,
-0.016205457970499992,
0.01576138101518154,
0.07331939786672592,
0.01886756159365177,
0.04200301319360733,
-0.05354287102818489,
0.043089114129543304,
0.018105171620845795,
0.09022171795368195,
-0.06917... | 0.120582 |
The key is not actually a key, but should be routed in cluster mode as if it was a key. \* `REDISMODULE\_CMD\_KEY\_INCOMPLETE`: The keyspec might not point out all the keys it should cover. \* `REDISMODULE\_CMD\_KEY\_VARIABLE\_FLAGS`: Some keys might have different flags depending on arguments. - `args`: An array of `R... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
0.03304910659790039,
0.008836803957819939,
-0.06413918733596802,
0.0558314174413681,
-0.025581849738955498,
-0.04210648685693741,
0.08785370737314224,
0.037160228937864304,
-0.10429061949253082,
-0.030532706528902054,
0.022565647959709167,
-0.07102930545806885,
0.019283782690763474,
-0.084... | 0.16819 |
### `RedisModule\_CachedMicroseconds` ustime\_t RedisModule\_CachedMicroseconds(void); \*\*Available since:\*\* 7.2.0 Return the cached UNIX time in microseconds. It is updated in the server cron job and before executing a command. It is useful for complex call stacks, such as a command causing a key space notification... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.06602793186903,
0.0037960936315357685,
-0.09330813586711884,
0.05785059556365013,
0.02928049862384796,
-0.06390447914600372,
0.042189255356788635,
0.038752295076847076,
0.04751504957675934,
-0.03645982965826988,
-0.019340867176651955,
0.0041280463337898254,
-0.03660886362195015,
-0.0599... | 0.126384 |
## Automatic memory management for modules ### `RedisModule\_AutoMemory` void RedisModule\_AutoMemory(RedisModuleCtx \*ctx); \*\*Available since:\*\* 4.0.0 Enable automatic memory management. The function must be called as the first function of a command implementation that wants to use automatic memory. When enabled, ... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
0.012056437321007252,
0.008893082849681377,
-0.09212673455476761,
0.06292913854122162,
-0.050209879875183105,
-0.045294422656297684,
0.11659496277570724,
0.06267998367547989,
-0.00508420355618,
0.008356296457350254,
0.017540758475661278,
-0.019961800426244736,
0.01815006695687771,
-0.03487... | 0.214334 |
released with [`RedisModule\_FreeString()`](#RedisModule\_FreeString), unless automatic memory is enabled. The passed context `ctx` may be NULL if necessary. See the [`RedisModule\_CreateString()`](#RedisModule\_CreateString) documentation for more info. ### `RedisModule\_FreeString` void RedisModule\_FreeString(RedisM... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.00022088640253059566,
0.02311379835009575,
-0.10340724140405655,
0.06040326878428459,
-0.052493467926979065,
-0.013664966449141502,
0.09370063990354538,
0.042820677161216736,
0.02018127217888832,
-0.022116130217909813,
0.05060888081789017,
-0.04109349101781845,
0.029980098828673363,
-0.... | 0.113701 |
to optimize memory usage. Threaded modules that reference held strings from other threads \*must\* explicitly trim the allocation as soon as the string is held. Not doing so may result with automatic trimming which is not thread safe. ### `RedisModule\_StringPtrLen` const char \*RedisModule\_StringPtrLen(const RedisMod... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
0.06877127289772034,
0.027919499203562737,
-0.014693924225866795,
0.027462581172585487,
-0.10607655346393585,
0.016394738107919693,
0.00034379103453829885,
0.08835283666849136,
-0.003433670848608017,
-0.08103743940591812,
-0.00240246020257473,
0.03124532289803028,
-0.0038215452805161476,
-... | 0.101527 |
\*not thread safe\*. A background thread manipulating a recently retained string may end up in a race condition with the auto-trim, which could result with data corruption. ## Reply APIs These functions are used for sending replies to the client. Most functions always return `REDISMODULE\_OK` so you can use it with 're... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.06636517494916916,
0.03238764405250549,
0.002405160805210471,
0.06711423397064209,
-0.09008301049470901,
-0.07002853602170944,
0.04593294858932495,
-0.02003466710448265,
0.07217060774564743,
-0.0075896126218140125,
0.005891173612326384,
-0.01536977756768465,
-0.0008494134526699781,
-0.0... | 0.083325 |
'len' elements. Visit [https://github.com/antirez/RESP3/blob/master/spec.md](https://github.com/antirez/RESP3/blob/master/spec.md) for more info about RESP3. After starting a set reply, the module must make `len` calls to other `ReplyWith\*` style functions in order to emit the elements of the set. See Reply APIs secti... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.07206004858016968,
0.005748532246798277,
-0.042970094829797745,
0.0549195371568203,
-0.061534300446510315,
-0.036312125623226166,
0.07609882950782776,
0.050949838012456894,
0.02702896110713482,
-0.019444765523076057,
-0.04720667004585266,
-0.01775476150214672,
0.024513954296708107,
-0.0... | 0.086604 |
\*\*Available since:\*\* 4.0.0 Reply with a bulk string, taking in input a `RedisModuleString` object. The function always returns `REDISMODULE\_OK`. ### `RedisModule\_ReplyWithEmptyString` int RedisModule\_ReplyWithEmptyString(RedisModuleCtx \*ctx); \*\*Available since:\*\* 6.0.0 Reply with an empty string. The functi... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.011885803192853928,
0.006627859082072973,
-0.029665719717741013,
0.046351268887519836,
-0.01773916929960251,
-0.024335062131285667,
0.08033602684736252,
0.072405144572258,
-0.07389405369758606,
-0.01013213861733675,
-0.02682742476463318,
-0.09134446084499359,
0.0018554431153461337,
-0.0... | 0.121661 |
(see `addReplyHumanLongDouble` in networking.c). The function always returns `REDISMODULE\_OK`. ## Commands replication API ### `RedisModule\_Replicate` int RedisModule\_Replicate(RedisModuleCtx \*ctx, const char \*cmdname, const char \*fmt, ...); \*\*Available since:\*\* 4.0.0 Replicate the specified command and argum... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.07823742926120758,
-0.03894396498799324,
-0.06670968979597092,
0.04581136256456375,
-0.044648364186286926,
-0.09416350722312927,
-0.012777364812791348,
-0.006491674110293388,
-0.010792667046189308,
0.011515837162733078,
0.06429755687713623,
-0.00843253917992115,
0.023031312972307205,
-0... | 0.16857 |
} ### `RedisModule\_GetClientUserNameById` RedisModuleString \*RedisModule\_GetClientUserNameById(RedisModuleCtx \*ctx, uint64\_t id); \*\*Available since:\*\* 6.2.1 Return the ACL user name used by the client with the specified client ID. Client ID can be obtained with [`RedisModule\_GetClientId()`](#RedisModule\_GetC... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.0881604254245758,
0.07068265229463577,
-0.12599726021289825,
0.014029104262590408,
-0.0333070307970047,
-0.0390770360827446,
0.12358792126178741,
0.03793894127011299,
-0.013253414072096348,
-0.09265553951263428,
0.008449454791843891,
-0.0617951937019825,
0.07603834569454193,
-0.07263820... | 0.146296 |
The command was sent over the replication link by the MASTER \* `REDISMODULE\_CTX\_FLAGS\_MASTER`: The Redis instance is a master \* `REDISMODULE\_CTX\_FLAGS\_SLAVE`: The Redis instance is a slave \* `REDISMODULE\_CTX\_FLAGS\_READONLY`: The Redis instance is read-only \* `REDISMODULE\_CTX\_FLAGS\_CLUSTER`: The Redis in... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.01775055192410946,
-0.0677180364727974,
-0.12357791513204575,
0.02532222867012024,
0.02062518335878849,
-0.06079534813761711,
0.019237706437706947,
-0.08075171709060669,
-0.005845659412443638,
0.021345507353544235,
0.04146202281117439,
0.019663006067276,
0.08321532607078552,
-0.06981576... | 0.091243 |
4.0.0 Return a handle representing a Redis key, so that it is possible to call other APIs with the key handle as argument to perform operations on the key. The return value is the handle representing the key, that must be closed with [`RedisModule\_CloseKey()`](#RedisModule\_CloseKey). If the key does not exist and `RE... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.018454015254974365,
0.015705745667219162,
-0.09635510295629501,
0.08272357285022736,
-0.04336144030094147,
-0.07548978924751282,
0.07473786175251007,
0.01415187492966652,
-0.013319650664925575,
-0.009139424189925194,
0.012903264723718166,
0.008741800673305988,
0.025126421824097633,
-0.0... | 0.085268 |
writing or is an empty key. ### `RedisModule\_GetAbsExpire` mstime\_t RedisModule\_GetAbsExpire(RedisModuleKey \*key); \*\*Available since:\*\* 6.2.2 Return the key expire value, as absolute Unix timestamp. If no TTL is associated with the key or if the key is empty, `REDISMODULE\_NO\_EXPIRE` is returned. ### `RedisMod... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.02657424472272396,
-0.0019003249472007155,
-0.09131333231925964,
0.04161882400512695,
-0.017219722270965576,
-0.0016805388731881976,
0.025588031858205795,
0.09896763414144516,
0.029446396976709366,
-0.01186672318726778,
0.06702416390180588,
-0.020856890827417374,
0.04457651078701019,
-0... | 0.136608 |
later call StringDMA() again to get the pointer. ### `RedisModule\_StringTruncate` int RedisModule\_StringTruncate(RedisModuleKey \*key, size\_t newlen); \*\*Available since:\*\* 4.0.0 If the key is open for writing and is of string type, resize it, padding with zero bytes if the new length is greater than the old one.... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
0.008411419577896595,
0.03546658903360367,
-0.0063676731660962105,
0.015674546360969543,
-0.10367430001497269,
-0.06403008848428726,
0.07659170776605606,
0.11149528622627258,
-0.05335797369480133,
-0.003950731363147497,
0.019815780222415924,
0.026391642168164253,
-0.02205478772521019,
-0.0... | 0.123903 |
element, 1 the second element and so on. Negative indices can be used to designate elements starting at the tail of the list. Here, -1 means the last element, -2 means the penultimate and so forth. When no value is found at the given key and index, NULL is returned and `errno` is set as follows: - EINVAL if key is NULL... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
0.006403790321201086,
0.058897461742162704,
-0.05228128284215927,
0.04400653392076492,
0.006912376265972853,
-0.05806422233581543,
0.12568123638629913,
0.08343848586082458,
-0.029778651893138885,
-0.03446340560913086,
0.05470287427306175,
-0.034299347549676895,
0.041785828769207,
-0.084363... | 0.198226 |
input flags are: REDISMODULE\_ZADD\_XX: Element must already exist. Do nothing otherwise. REDISMODULE\_ZADD\_NX: Element must not exist. Do nothing otherwise. REDISMODULE\_ZADD\_GT: If element exists, new score must be greater than the current score. Do nothing otherwise. Can optionally be combined with XX. REDISMODULE... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.014377312734723091,
0.033998604863882065,
-0.059942469000816345,
0.03859624266624451,
0.007918975315988064,
-0.00814898032695055,
0.07823874801397324,
-0.027730541303753853,
-0.012759384699165821,
-0.008030647411942482,
0.044034674763679504,
-0.019312653690576553,
0.06832152605056763,
-... | 0.117105 |
in the following conditions: 1. The value stored at key is not a sorted set or the key is empty. The range is specified according to the two double values 'min' and 'max'. Both can be infinite using the following two macros: \* `REDISMODULE\_POSITIVE\_INFINITE` for positive infinite value \* `REDISMODULE\_NEGATIVE\_INF... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.006598243024200201,
0.054601702839136124,
-0.024960018694400787,
-0.0009194466983899474,
-0.0455324687063694,
-0.02166581153869629,
0.04674384742975235,
0.0642293244600296,
-0.09249594062566757,
-0.050633519887924194,
0.028813453391194344,
-0.0573241263628006,
0.1305939108133316,
-0.040... | 0.022522 |
no special behavior is needed. REDISMODULE\_HASH\_NX: The operation is performed only if the field was not already existing in the hash. REDISMODULE\_HASH\_XX: The operation is performed only if the field was already existing, so that a new value could be associated to an existing filed, but no new fields are created. ... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
0.006916575133800507,
-0.02006099745631218,
-0.05798952654004097,
0.026477821171283722,
0.00038967415457591414,
-0.0745985135436058,
0.04639989137649536,
-0.06396129727363586,
0.09952203929424286,
-0.025558466091752052,
0.039694320410490036,
0.04795091599225998,
0.035240910947322845,
-0.06... | 0.07785 |
{ uint64\_t ms; uint64\_t seq; } RedisModuleStreamID; See also [`RedisModule\_ValueLength()`](#RedisModule\_ValueLength), which returns the length of a stream, and the conversion functions [`RedisModule\_StringToStreamID()`](#RedisModule\_StringToStreamID) and [`RedisModule\_CreateStringFromStreamID()`](#RedisModule\_C... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
0.04003659263253212,
0.04790028557181358,
-0.11337536573410034,
-0.04660731181502342,
-0.025768080726265907,
-0.02428930252790451,
0.06792505830526352,
0.0720953494310379,
-0.013948936946690083,
-0.04086000472307205,
-0.011413266882300377,
-0.09431483596563339,
0.027374302968382835,
-0.080... | 0.086617 |
invalid arguments were given. The stream IDs are retrieved using [`RedisModule\_StreamIteratorNextID()`](#RedisModule\_StreamIteratorNextID) and for each stream ID, the fields and values are retrieved using [`RedisModule\_StreamIteratorNextField()`](#RedisModule\_StreamIteratorNextField). The iterator is freed by calli... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
0.026078984141349792,
0.03871086612343788,
-0.08160529285669327,
-0.04861338064074516,
0.03630054369568825,
-0.006986256688833237,
0.06241852790117264,
0.028235986828804016,
-0.04092763364315033,
-0.07109376043081284,
-0.028392499312758446,
-0.07059688121080399,
0.0036150417290627956,
-0.0... | 0.066906 |
`RedisModule\_StreamIteratorDelete` int RedisModule\_StreamIteratorDelete(RedisModuleKey \*key); \*\*Available since:\*\* 6.2.0 Deletes the current stream entry while iterating. This function can be called after [`RedisModule\_StreamIteratorNextID()`](#RedisModule\_StreamIteratorNextID) or after any calls to [`RedisMod... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.0010262641590088606,
-0.013266101479530334,
-0.08649555593729019,
-0.02228400856256485,
0.05438389629125595,
-0.05506712198257446,
0.09881194680929184,
-0.0009278973448090255,
0.03806270658969879,
-0.06558439880609512,
0.02831001952290535,
-0.028995150700211525,
-0.013552796095609665,
-... | 0.176723 |
\*\*Available since:\*\* 7.0.0 Return the 'idx'-th nested call reply element of a set reply, or NULL if the reply type is wrong or the index is out of range. ### `RedisModule\_CallReplyMapElement` int RedisModule\_CallReplyMapElement(RedisModuleCallReply \*reply, size\_t idx, RedisModuleCallReply \*\*key, RedisModuleCa... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.01150701753795147,
0.028684493154287338,
-0.017401395365595818,
0.0454915389418602,
-0.08645709604024887,
-0.026633400470018387,
0.11671622842550278,
0.060832008719444275,
-0.04541684314608574,
-0.035936228930950165,
-0.012075139209628105,
-0.05721428245306015,
0.0445873886346817,
-0.08... | 0.110156 |
of RedisModuleString. \* `!` -- Sends the Redis command and its arguments to replicas and AOF. \* `A` -- Suppress AOF propagation, send only to replicas (requires `!`). \* `R` -- Suppress replicas propagation, send only to AOF (requires `!`). \* `3` -- Return a RESP3 reply. This will change the command reply. e.g., HGE... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.00872464757412672,
-0.016067994758486748,
-0.1349550485610962,
0.03041156753897667,
-0.010190986096858978,
-0.07431980967521667,
0.12534193694591522,
0.010160171426832676,
-0.00114659802056849,
-0.021394941955804825,
-0.016236193478107452,
-0.07256767898797989,
0.05734853446483612,
-0.0... | 0.165368 |
a replica) or relying on the disconnect callback of the original client. Failing to do so can result in a write operation on a replica. Unlike other call replies, promise call reply \*\*must\*\* be freed while the Redis GIL is locked. Notice that on unblocking, the only promise is that the unblock handler will be calle... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.15078270435333252,
-0.04912767559289932,
-0.0647500678896904,
0.057031016796827316,
0.020491013303399086,
-0.07216809689998627,
0.010556263849139214,
-0.05289691314101219,
0.0782996416091919,
0.010802463628351688,
-0.004140907432883978,
0.06418660283088684,
0.000439409603131935,
-0.0457... | 0.12743 |
For example the module "tree-AntZ" initially used encver=0. Later after an upgrade, it started to serialize data in a different format and to register the type with encver=1. However this module may still load old data produced by an older version if the `rdb\_load` callback is able to check the encver value and act ac... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.0037966438103467226,
-0.01431945338845253,
-0.04793979600071907,
0.013801857829093933,
-0.010238257236778736,
-0.03704584389925003,
-0.05127539485692978,
0.027862509712576866,
-0.1014656126499176,
0.02456985041499138,
0.01804923824965954,
-0.008743200451135635,
-0.0006798068061470985,
-... | 0.034549 |
time limit, so [`RedisModule\_DefragShouldStop()`](#RedisModule\_DefragShouldStop) always returns zero. The "late defrag" mechanism which has a time limit and provides cursor support is used only for keys that are determined to have significant internal complexity. To determine this, the defrag mechanism uses the `free... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.03135963901877403,
-0.00042594721890054643,
-0.0817505270242691,
0.007452947553247213,
0.038965001702308655,
-0.10682496428489685,
0.11374218016862869,
0.09947207570075989,
-0.044633012264966965,
0.006520635448396206,
0.012767894193530083,
0.029422327876091003,
0.03828190267086029,
-0.0... | 0.157878 |
unsigned 64 bit value into the RDB file. This function should only be called in the context of the `rdb\_save` method of modules implementing new data types. ### `RedisModule\_LoadUnsigned` uint64\_t RedisModule\_LoadUnsigned(RedisModuleIO \*io); \*\*Available since:\*\* 4.0.0 Load an unsigned 64 bit value from the RDB... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
0.07578077912330627,
0.030161675065755844,
-0.09278734773397446,
-0.017173029482364655,
-0.054925233125686646,
0.009052298963069916,
-0.025362027809023857,
0.06452581286430359,
-0.09309985488653183,
0.017204612493515015,
-0.01166684553027153,
-0.05592711642384529,
0.06499528139829636,
-0.0... | 0.013711 |
type, loads back the long double value saved by [`RedisModule\_SaveLongDouble()`](#RedisModule\_SaveLongDouble). ## Key digest API (DEBUG DIGEST interface for modules types) ### `RedisModule\_DigestAddStringBuffer` void RedisModule\_DigestAddStringBuffer(RedisModuleDigest \*md, const char \*ele, size\_t len); \*\*Avail... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
0.04663857817649841,
-0.02519715391099453,
-0.058461640030145645,
0.04401180148124695,
-0.05980667471885681,
-0.06702651083469391,
0.0527845099568367,
-0.004539534915238619,
-0.02482474222779274,
-0.050056472420692444,
0.004422045778483152,
0.0013273553922772408,
0.02586827427148819,
-0.07... | 0.115398 |
the AOF rewriting process. This function is only called in the context of the `aof\_rewrite` method of data types exported by a module. The command works exactly like [`RedisModule\_Call()`](#RedisModule\_Call) in the way the parameters are passed, but it does not return anything as the error handling is performed by R... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.015575017780065536,
0.0009795152582228184,
-0.04206237941980362,
0.060422301292419434,
-0.027926597744226456,
-0.0845203846693039,
0.0733356699347496,
0.042740099132061005,
-0.007599682547152042,
0.015750929713249207,
-0.02636522799730301,
-0.014723378233611584,
-0.020718954503536224,
-... | 0.126771 |
following actions: (1) Authenticate - Use the `RedisModule\_AuthenticateClient`\* API and return `REDISMODULE\_AUTH\_HANDLED`. This will immediately end the auth chain as successful and add the OK reply. (2) Deny Authentication - Return `REDISMODULE\_AUTH\_HANDLED` without authenticating or blocking the client. Optiona... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.12268833070993423,
0.07464609295129776,
-0.04848455637693405,
0.04765790328383446,
0.02091224491596222,
-0.08439906686544418,
0.0384947694838047,
-0.03109772875905037,
0.020026126876473427,
-0.02566942758858204,
-0.005333370994776487,
-0.027311047539114952,
0.07017084956169128,
0.028462... | 0.052929 |
zero value. Measuring background time: By default the time spent in the blocked command is not account for the total command duration. To include such time you should use [`RedisModule\_BlockedClientMeasureTimeStart()`](#RedisModule\_BlockedClientMeasureTimeStart) and [`RedisModule\_BlockedClientMeasureTimeEnd()`](#Red... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.06131891533732414,
0.051514096558094025,
-0.08203888684511185,
0.027187997475266457,
0.042033787816762924,
-0.07045034319162369,
0.02371237985789776,
-0.0014022282557561994,
0.05167732015252113,
-0.03419274464249611,
-0.002383577637374401,
-0.1082196980714798,
0.015026313252747059,
0.01... | 0.056075 |
unblocking is performed by Redis itself, so we need to have some private data before hand. The private data is used to store any information about the specific unblocking operation that you are implementing. Such information will be freed using the `free\_privdata` callback provided by the user. However the reply callb... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.09703602641820908,
0.0010198048548772931,
-0.10299833863973618,
0.048882436007261276,
-0.008147330023348331,
-0.022960079833865166,
0.006282041314989328,
-0.0225497018545866,
0.03733719885349274,
-0.01399286463856697,
0.007258704863488674,
0.022272730246186256,
-0.007372533902525902,
-0... | 0.024278 |
is called. ### `RedisModule\_IsBlockedReplyRequest` int RedisModule\_IsBlockedReplyRequest(RedisModuleCtx \*ctx); \*\*Available since:\*\* 4.0.0 Return non-zero if a module command was called in order to fill the reply for a blocked client. ### `RedisModule\_IsBlockedTimeoutRequest` int RedisModule\_IsBlockedTimeoutReq... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.022057093679904938,
0.038112834095954895,
-0.09719625115394592,
0.030219074338674545,
0.00528284115716815,
-0.01289067417383194,
0.05685081705451012,
0.019717738032341003,
-0.025039659813046455,
-0.012011957354843616,
0.05260052531957626,
-0.06378232687711716,
0.01135907880961895,
-0.03... | 0.119413 |
their type (string events, set events, etc), and the subscriber callback receives only events that match a specific mask of event types. When subscribing to notifications with [`RedisModule\_SubscribeToKeyspaceEvents`](#RedisModule\_SubscribeToKeyspaceEvents) the module must provide an event type-mask, denoting the eve... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.016844013705849648,
-0.03527521714568138,
0.0017430963926017284,
0.06400282680988312,
0.060816001147031784,
-0.02410362847149372,
0.11986593157052994,
-0.030429990962147713,
0.038859207183122635,
-0.05088881775736809,
-0.009029067121446133,
-0.08931252360343933,
0.02106044627726078,
0.0... | 0.128378 |
of the feature correctness and so Redis will make no attempt to protect the module from infinite loops. '`free\_pd`' can be NULL and in such case will not be used. Return `REDISMODULE\_OK` on success and `REDISMODULE\_ERR` if was called while loading data from disk (AOF or RDB) or if the instance is a readonly replica.... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.02542608045041561,
-0.023577604442834854,
-0.06481867283582687,
0.00044364601490087807,
0.05583985522389412,
-0.05060616880655289,
0.08022931963205338,
0.011630917899310589,
0.004942173603922129,
-0.024225883185863495,
0.04610748961567879,
-0.06309220939874649,
0.041985884308815,
-0.085... | 0.104584 |
(only populated if the instance is a slave) are specified, they point to buffers holding at least `REDISMODULE\_NODE\_ID\_LEN` bytes. The strings written back as `ip` and `master\_id` are not null terminated. The list of flags reported is the following: \* `REDISMODULE\_NODE\_MYSELF`: This node \* `REDISMODULE\_NODE\_M... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
0.00875362940132618,
0.0014705476351082325,
-0.06908532232046127,
0.04716144874691963,
0.049776166677474976,
-0.03373843804001808,
0.009727943688631058,
-0.02275325544178486,
-0.05829562619328499,
-0.00005776532634627074,
-0.005505644250661135,
-0.03397219628095627,
0.02500511333346367,
-0... | 0.152042 |
time before firing (in milliseconds), and the private data pointer associated with the timer. If the timer specified does not exist or belongs to a different module no information is returned and the function returns `REDISMODULE\_ERR`, otherwise `REDISMODULE\_OK` is returned. The arguments remaining or data can be NUL... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
0.029055438935756683,
0.03110956959426403,
-0.10006647557020187,
0.07721124589443207,
-0.02953682839870453,
-0.03548622503876686,
0.0872969999909401,
0.0621199756860733,
0.03383639454841614,
-0.03031543456017971,
0.03039821796119213,
-0.10263124853372574,
-0.050118595361709595,
-0.01387740... | 0.168437 |
Returns `REDISMODULE\_OK` on success and `REDISMODULE\_ERR` on failure and will set an errno describing why the operation failed. ### `RedisModule\_SetModuleUserACLString` int RedisModule\_SetModuleUserACLString(RedisModuleCtx \*ctx, RedisModuleUser \*user, const char \*acl, RedisModuleString \*\*error); \*\*Available ... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.03887438029050827,
0.02242635190486908,
-0.08319592475891113,
0.06153689697384834,
-0.04054996743798256,
-0.065894216299057,
0.12610043585300446,
0.06052428111433983,
-0.043775979429483414,
-0.07874183356761932,
0.031036537140607834,
-0.064351387321949,
0.051052071154117584,
0.016482142... | 0.110517 |
is able to access the pubsub channel then `REDISMODULE\_OK` is returned, otherwise `REDISMODULE\_ERR` is returned and errno is set to one of the following values: \* EINVAL: The provided flags are invalid. \* EACCESS: The user does not have permission to access the pubsub channel. ### `RedisModule\_ACLAddLogEntry` int ... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
0.02535814419388771,
-0.025457898154854774,
-0.1604013442993164,
0.017701270058751106,
-0.007261462509632111,
-0.04490678757429123,
0.05226610228419304,
0.0014363458612933755,
0.007637823466211557,
-0.04035180062055588,
0.010301589965820312,
-0.05311179533600807,
0.024612100794911385,
0.01... | 0.108596 |
\*\*Available since:\*\* 5.0.0 Create a new dictionary. The 'ctx' pointer can be the current module context or NULL, depending on what you want. Please follow the following rules: 1. Use a NULL context if you plan to retain a reference to this dictionary that will survive the time of the module callback where you creat... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.05028184875845909,
0.005881933029741049,
-0.1026100292801857,
0.03846372291445732,
-0.06436727941036224,
-0.005561484955251217,
0.0747322142124176,
0.021343909204006195,
-0.015759265050292015,
-0.008788038045167923,
0.05308106169104576,
0.0003943542542401701,
0.021426180377602577,
-0.00... | 0.059704 |
by applying the operator 'op', which is just a string specifying the comparison operator to use in order to seek the first element. The operators available are: \* `^` – Seek the first (lexicographically smaller) key. \* `$` – Seek the last (lexicographically bigger) key. \* `>` – Seek the first element greater than th... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.0354275144636631,
0.04622366279363632,
0.016161054372787476,
0.00959479995071888,
-0.07603183388710022,
-0.11753963679075241,
0.0762333944439888,
0.008489061146974564,
-0.041692450642585754,
-0.037768326699733734,
0.026002265512943268,
0.019031409174203873,
0.07498025894165039,
-0.03467... | 0.080863 |
iterator, it selects the previous element (lexicographically smaller) instead of the next one. ### `RedisModule\_DictNext` RedisModuleString \*RedisModule\_DictNext(RedisModuleCtx \*ctx, RedisModuleDictIter \*di, void \*\*dataptr); \*\*Available since:\*\* 5.0.0 Like `RedisModuleNextC()`, but instead of returning an in... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
0.012906729243695736,
0.012198731303215027,
-0.021091749891638756,
0.04341442137956619,
-0.07884340733289719,
-0.0781640037894249,
0.09700775891542435,
0.0460239052772522,
-0.016289634630084038,
-0.05319648236036301,
0.04174825921654701,
-0.041069287806749344,
0.0044124796986579895,
-0.042... | 0.084982 |
fields. When done, it needs to be freed with [`RedisModule\_FreeServerInfo`](#RedisModule\_FreeServerInfo) or with the automatic memory management mechanism if enabled. ### `RedisModule\_FreeServerInfo` void RedisModule\_FreeServerInfo(RedisModuleCtx \*ctx, RedisModuleServerInfoData \*data); \*\*Available since:\*\* 6.... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
0.012725570239126682,
-0.0000070303212851285934,
-0.11429480463266373,
0.02613813243806362,
-0.030021876096725464,
-0.04510759562253952,
0.11710573732852936,
0.02420749142765999,
-0.02915746532380581,
-0.003310284810140729,
0.04470350965857506,
-0.045922815799713135,
0.010555691085755825,
... | 0.071499 |
requested API is not available then NULL is returned. Because modules can be loaded at different times with different order, this function calls should be put inside some module generic API registering step, that is called every time a module attempts to execute a command that requires external APIs: if some API cannot... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.07241848111152649,
-0.03325691074132919,
-0.04594182223081589,
0.04042380675673485,
-0.05204033851623535,
0.0019528224365785718,
-0.012975974939763546,
0.10119014233350754,
-0.030874211341142654,
-0.08308830857276917,
0.008708986453711987,
-0.12702523171901703,
0.0010708689223974943,
-0... | 0.08545 |
include the command itself. ### `RedisModule\_CommandFilterArgGet` RedisModuleString \*RedisModule\_CommandFilterArgGet(RedisModuleCommandFilterCtx \*fctx, int pos); \*\*Available since:\*\* 5.0.5 Return the specified command argument. The first argument (position 0) is the command itself, and the rest are user-provide... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.006037721876055002,
0.0007239804835990071,
-0.06988052278757095,
0.03146524727344513,
-0.013807497918605804,
-0.018364164978265762,
0.14542555809020996,
0.01810617186129093,
-0.04303888976573944,
-0.016970587894320488,
-0.013691502623260021,
-0.09615884721279144,
-0.010914765298366547,
... | 0.110812 |
be free when the callback returns. - `privdata`: the user data provided to [`RedisModule\_Scan()`](#RedisModule\_Scan). The way it should be used: RedisModuleScanCursor \*c = RedisModule\_ScanCursorCreate(); while(RedisModule\_Scan(ctx, c, callback, privateData)); RedisModule\_ScanCursorDestroy(c); It is also possible ... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.06933820247650146,
-0.008233868516981602,
-0.14497756958007812,
-0.02343646250665188,
-0.04705924540758133,
-0.04086867719888687,
0.13126562535762787,
-0.036098890006542206,
-0.010600196197628975,
-0.012351217679679394,
0.02660864032804966,
0.024140968918800354,
0.040811385959386826,
-0... | 0.101397 |
In general deleting the current element of the data structure is safe, while removing the key you are iterating is not safe. ## Module fork API ### `RedisModule\_Fork` int RedisModule\_Fork(RedisModuleForkDoneHandler cb, void \*user\_data); \*\*Available since:\*\* 6.0.0 Create a background child process with the curre... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.029751446098089218,
0.01565447449684143,
-0.07042133063077927,
-0.02427072450518608,
-0.001228551845997572,
-0.11635163426399231,
0.05816872417926788,
0.033971499651670456,
0.007620999589562416,
0.024543212726712227,
0.04795454815030098,
0.04996016249060631,
0.03732529655098915,
-0.0668... | 0.072502 |
be casted by the callback to a `RedisModuleReplicationInfo` structure with the following fields: int master; // true if master, false if replica char \*masterhost; // master instance hostname for NOW\_REPLICA int masterport; // master instance port for NOW\_REPLICA char \*replid1; // Main replication ID char \*replid2;... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.055690474808216095,
-0.06454567611217499,
-0.034626856446266174,
-0.009712424129247665,
-0.01784515753388405,
-0.0034182274248450994,
-0.005261996760964394,
-0.04205511137843132,
0.043529026210308075,
0.017877984791994095,
0.03688749298453331,
-0.02511594444513321,
0.0380840040743351,
-... | 0.12377 |
calls this function 10 times per second, but this changes depending on the "hz" configuration. No sub events are available. The data pointer can be casted to a RedisModuleCronLoop structure with the following fields: int32\_t hz; // Approximate number of events per second. \* `RedisModuleEvent\_MasterLinkChange` This i... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.06399377435445786,
-0.07069522887468338,
-0.05064723640680313,
0.0754009336233139,
-0.02719518169760704,
-0.028344061225652695,
0.02501819096505642,
0.007709567900747061,
0.038338448852300644,
-0.021577240899205208,
0.026495615020394325,
0.024175403639674187,
0.01747838966548443,
-0.044... | 0.202887 |
config\_names array \* `RedisModule\_Event\_Key` Called when a key is removed from the keyspace. We can't modify any key in the event. The following sub events are available: \* `REDISMODULE\_SUBEVENT\_KEY\_DELETED` \* `REDISMODULE\_SUBEVENT\_KEY\_EXPIRED` \* `REDISMODULE\_SUBEVENT\_KEY\_EVICTED` \* `REDISMODULE\_SUBEV... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.03928197920322418,
-0.017716873437166214,
-0.04681308567523956,
0.05123474448919296,
-0.0013342672027647495,
-0.05894404649734497,
0.07676107436418533,
-0.01226812694221735,
0.03623778000473976,
-0.037565749138593674,
0.03710563853383064,
0.019624732434749603,
0.05195505917072296,
-0.04... | 0.145397 |
while the server is loading data. \* `REDISMODULE\_CONFIG\_MEMORY`: For numeric configs, this config will convert data unit notations into their byte equivalent. \* `REDISMODULE\_CONFIG\_BITFLAGS`: For enum configs, this config will allow multiple entries to be combined as bit flags. Default values are used on startup ... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
0.03656916320323944,
0.014162356965243816,
-0.16433241963386536,
0.032835595309734344,
-0.09940876811742783,
-0.02661040797829628,
0.09595142304897308,
0.08355402946472168,
-0.06790594011545181,
-0.0751912072300911,
0.03002176061272621,
-0.009668576531112194,
0.030825922265648842,
-0.08614... | 0.163794 |
configs. ### `RedisModule\_LoadConfigs` int RedisModule\_LoadConfigs(RedisModuleCtx \*ctx); \*\*Available since:\*\* 7.0.0 Applies all pending configurations on the module load. This should be called after all of the configurations have been registered for the module inside of `RedisModule\_OnLoad`. This will return `R... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
0.006591970566660166,
-0.03563418239355087,
-0.10663575679063797,
0.02514149621129036,
-0.006938476115465164,
0.006854237988591194,
0.02794370800256729,
0.09899624437093735,
-0.09924372285604477,
-0.0063704680651426315,
-0.030767710879445076,
-0.00874012615531683,
0.00648169219493866,
0.02... | 0.053167 |
check if a certain set of flags are supported by the redis server version in use. Example: int supportedFlags = RedisModule\_GetKeyspaceNotificationFlagsAll(); if (supportedFlags & REDISMODULE\_NOTIFY\_LOADED) { // REDISMODULE\_NOTIFY\_LOADED is supported } else{ // REDISMODULE\_NOTIFY\_LOADED is not supported } ### `R... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
0.03263130038976669,
-0.04561399295926094,
-0.10499737411737442,
-0.011467759497463703,
0.04981116205453873,
-0.03837191313505173,
0.004201340023428202,
-0.01097459252923727,
-0.017660077661275864,
-0.02090127393603325,
-0.009129871614277363,
-0.013019499368965626,
-0.026905791833996773,
-... | 0.096471 |
\*ctx, unsigned long cursor); \*\*Available since:\*\* 6.2.0 Store an arbitrary cursor value for future re-use. This should only be called if [`RedisModule\_DefragShouldStop()`](#RedisModule\_DefragShouldStop) has returned a non-zero value and the defrag callback is about to exit without fully iterating its data type. ... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.11256297677755356,
0.01726105622947216,
-0.057577282190322876,
0.026258936151862144,
0.048250578343868256,
-0.08999577164649963,
0.0880742147564888,
0.06692492216825485,
-0.007293592672795057,
-0.0250889603048563,
0.04643361270427704,
0.051950450986623764,
-0.0068991295993328094,
-0.059... | 0.182924 |
[`RedisModule\_CommandFilterArgReplace`](#RedisModule\_CommandFilterArgReplace) \* [`RedisModule\_CommandFilterArgsCount`](#RedisModule\_CommandFilterArgsCount) \* [`RedisModule\_CommandFilterGetClientId`](#RedisModule\_CommandFilterGetClientId) \* [`RedisModule\_CreateCommand`](#RedisModule\_CreateCommand) \* [`RedisM... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.009639625437557697,
0.002535981358960271,
-0.06637091934680939,
0.0035882387310266495,
-0.03214823454618454,
-0.07945293188095093,
0.13969410955905914,
-0.0134983966127038,
-0.042163968086242676,
-0.005022862926125526,
0.015416799113154411,
-0.0927555039525032,
0.09310605376958847,
-0.0... | 0.041735 |
[`RedisModule\_StringToStreamID`](#RedisModule\_StringToStreamID) \* [`RedisModule\_StringToULongLong`](#RedisModule\_StringToULongLong) \* [`RedisModule\_StringTruncate`](#RedisModule\_StringTruncate) \* [`RedisModule\_SubscribeToKeyspaceEvents`](#RedisModule\_SubscribeToKeyspaceEvents) \* [`RedisModule\_SubscribeToSe... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-api-ref.md | master | redis | [
-0.0219742301851511,
-0.005208424758166075,
-0.021737273782491684,
0.00841006264090538,
0.0132682416588068,
-0.0321703776717186,
0.10224732011556625,
-0.02758154645562172,
-0.00966913253068924,
-0.04415406286716461,
-0.01270477194339037,
-0.04620712250471115,
0.033876750618219376,
-0.05408... | 0.105344 |
Redis modules can access Redis built-in data structures both at high level, by calling Redis commands, and at low level, by manipulating the data structures directly. By using these capabilities in order to build new abstractions on top of existing Redis data structures, or by using strings DMA in order to encode modul... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-native-types.md | master | redis | [
-0.065529964864254,
-0.03436756134033203,
-0.05791084095835686,
0.02073424495756626,
-0.05698773264884949,
-0.09908080101013184,
0.0060904985293745995,
0.0233021043241024,
-0.06103372573852539,
-0.030057888478040695,
-0.035740096122026443,
-0.01586524397134781,
0.030659811571240425,
-0.015... | 0.173731 |
is a 9 character name in the character set that includes from `A-Z`, `a-z`, `0-9`, plus the underscore `\_` and minus `-` characters. Note that \*\*this name must be unique\*\* for each data type in the Redis ecosystem, so be creative, use both lower-case and upper case if it makes sense, and try to use the convention ... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-native-types.md | master | redis | [
-0.0740438774228096,
-0.04517840966582298,
-0.04723077267408371,
0.02514590509235859,
-0.13367319107055664,
-0.04451218992471695,
0.09861290454864502,
0.04250776767730713,
-0.0033613662235438824,
-0.0483168326318264,
0.019930582493543625,
-0.03333568945527077,
0.12194310873746872,
-0.01545... | 0.095315 |
order to let the module reclaim the memory associated with such a value. Ok, but \*why\* modules types require a 9 characters name? --- Oh, I understand you need to understand this, so here is a very specific explanation. When Redis persists to RDB files, modules specific data types require to be persisted as well. Now... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-native-types.md | master | redis | [
0.01881609857082367,
-0.006207865197211504,
-0.10759474337100983,
0.04929183050990105,
-0.05710061267018318,
0.016352782025933266,
0.05099950730800629,
0.06260891258716583,
0.010604120790958405,
-0.04932936653494835,
-0.018401097506284714,
0.06519726663827896,
0.04099494591355324,
-0.01065... | 0.069143 |
a value of a specific data type. The API uses the normal modules `RedisModule\_OpenKey()` low level key access interface in order to deal with this. This is an example of setting a native type private data structure to a Redis key: RedisModuleKey \*key = RedisModule\_OpenKey(ctx,keyname,REDISMODULE\_WRITE); struct some... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-native-types.md | master | redis | [
-0.029312385246157646,
-0.023537224158644676,
-0.11864938586950302,
0.07294502854347229,
-0.08445187658071518,
-0.06194847822189331,
0.07091186940670013,
0.08237927407026291,
-0.014231903478503227,
-0.02213115058839321,
0.029846081510186195,
0.004040644969791174,
0.006081124301999807,
-0.0... | 0.190568 |
you have to care those details yourself. This is the list of functions performing RDB saving and loading: void RedisModule\_SaveUnsigned(RedisModuleIO \*io, uint64\_t value); uint64\_t RedisModule\_LoadUnsigned(RedisModuleIO \*io); void RedisModule\_SaveSigned(RedisModuleIO \*io, int64\_t value); int64\_t RedisModule\_... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-native-types.md | master | redis | [
0.04754302278161049,
-0.004092744551599026,
-0.11984233558177948,
-0.024156825616955757,
-0.08409976959228516,
0.007898344658315182,
-0.012485799379646778,
0.08805178105831146,
-0.08343978971242905,
0.006121041718870401,
-0.03210330754518509,
-0.0714777484536171,
0.04473593458533287,
-0.07... | 0.078926 |
in mind that mixing libc calls with Redis API calls will result into troubles and crashes, so if you replace calls using macros, you need to make sure that all the calls are correctly replaced, and that the code with the substituted calls will never, for example, attempt to call `RedisModule\_Free()` with a pointer all... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-native-types.md | master | redis | [
-0.009588897228240967,
-0.05386849865317345,
-0.10673082619905472,
0.018652064725756645,
-0.05106010660529137,
-0.04843149706721306,
0.026688069105148315,
0.05387771874666214,
0.011488573625683784,
-0.031277406960725784,
-0.03439124673604965,
-0.020284729078412056,
-0.0292372889816761,
-0.... | 0.087433 |
Redis has a few blocking commands among the built-in set of commands. One of the most used is `BLPOP` (or the symmetric `BRPOP`) which blocks waiting for elements arriving in a list. The interesting fact about blocking commands is that they do not block the whole server, but just the client calling them. Usually the re... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-blocking-ops.md | master | redis | [
-0.10709188133478165,
-0.03649653121829033,
-0.06432223320007324,
0.02550407312810421,
0.03280298039317131,
-0.10125011950731277,
0.006940905470401049,
-0.05405903607606888,
0.06366021931171417,
-0.01609537936747074,
0.004345500376075506,
0.038113079965114594,
-0.020640365779399872,
-0.083... | 0.158077 |
function to have the responsibility to free the data passed if needed. To better understand how the API works, we can imagine writing a command that blocks a client for one second, and then send as reply "Hello!". Note: arity checks and other non important things are not implemented int his command, in order to take th... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-blocking-ops.md | master | redis | [
-0.0686042457818985,
0.04976751282811165,
-0.06061457097530365,
0.025902315974235535,
-0.04764120280742645,
-0.05842529237270355,
0.0624825693666935,
0.01158866472542286,
0.058372240513563156,
0.024227144196629524,
-0.02705281786620617,
-0.054344650357961655,
-0.007898536510765553,
-0.0836... | 0.201651 |
but the thread creation function returns an error. What to do in such a condition in order to recover? We don't want to take the client blocked, nor we want to call `UnblockClient()` because this will trigger the reply callback to be called. In this case the best thing to do is to use the following function: int RedisM... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/modules-blocking-ops.md | master | redis | [
-0.09968757629394531,
-0.0003359966503921896,
-0.04411478340625763,
0.011974290944635868,
-0.06598770618438721,
-0.011848872527480125,
0.04708974435925484,
0.008492803201079369,
0.01453245710581541,
0.01660796068608761,
0.0031750935595482588,
-0.08899535238742828,
-0.009528255090117455,
-0... | 0.088732 |
The modules documentation is composed of the following pages: \* Introduction to Redis modules (this file). An overview about Redis Modules system and API. It's a good idea to start your reading here. \* [Implementing native data types](/topics/modules-native-types) covers the implementation of native data types into m... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/_index.md | master | redis | [
-0.0928284227848053,
-0.042633604258298874,
-0.1010688990354538,
0.03070845454931259,
0.03382544964551926,
-0.0780840516090393,
0.02749108150601387,
0.034405168145895004,
-0.022351285442709923,
-0.05878088250756264,
-0.0033916013780981302,
0.037549376487731934,
-0.0005523791187442839,
-0.0... | 0.231785 |
name of the module followed by a dot, and finally the command name, like in the case of `HELLOWORLD.RAND`. This way it is less likely to have collisions. Note that if different modules have colliding commands, they'll not be able to work in Redis at the same time, since the function `RedisModule\_CreateCommand` will fa... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/_index.md | master | redis | [
-0.09090466797351837,
-0.04908423498272896,
-0.11082995682954788,
0.019875532016158104,
0.037132084369659424,
-0.13732413947582245,
0.05730465427041054,
0.009135037660598755,
-0.019503289833664894,
-0.07155273854732513,
0.021980829536914825,
0.01458335667848587,
0.07295633852481842,
-0.059... | 0.155025 |
library, nor they need to be compiled with a specific `redismodule.h` file. In order to create a new module, just copy a recent version of `redismodule.h` in your source tree, link all the libraries you want, and create a dynamic library having the `RedisModule\_OnLoad()` function symbol exported. The module will be ab... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/_index.md | master | redis | [
-0.020976442843675613,
-0.04790358617901802,
-0.14382125437259674,
-0.0030604396015405655,
0.022558346390724182,
-0.05652804672718048,
-0.0012623267248272896,
0.042157139629125595,
-0.02356063760817051,
-0.09073712676763535,
0.00012363291170913726,
-0.024149904027581215,
0.0092216981574893,
... | 0.089411 |
\*/ } ## Accessing Redis keys from modules Most Redis modules, in order to be useful, have to interact with the Redis data space (this is not always true, for example an ID generator may never touch Redis keys). Redis modules have two different APIs in order to access the Redis data space, one is a low level API that p... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/_index.md | master | redis | [
-0.107613705098629,
-0.04589592665433884,
-0.0643669068813324,
0.007323624100536108,
0.013685262762010098,
-0.12275972962379456,
0.015442407689988613,
0.08048021793365479,
0.04740913584828377,
-0.05298205837607384,
0.02430545724928379,
0.042873721569776535,
0.032332196831703186,
-0.0528684... | 0.200596 |
\*\*R\*\* -- This modifier, when `!` is given, tells to suppress replicas propagation: the command will be propagated only to the AOF if enabled. The function returns a `RedisModuleCallReply` object on success, on error NULL is returned. NULL is returned when the command name is invalid, the format specifier uses chara... | https://github.com/redis/redis-doc/blob/master//docs/reference/modules/_index.md | master | redis | [
-0.030292462557554245,
-0.040399741381406784,
-0.09645705670118332,
0.06061948090791702,
0.005380000453442335,
-0.07532567530870438,
0.056479763239622116,
0.016624199226498604,
0.026910515502095222,
-0.015709271654486656,
0.04464053362607956,
-0.04322238266468048,
0.0313723124563694,
-0.03... | 0.20143 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.