- 06 Feb, 2020 1 commit
-
-
Oran Agra authored
-
- 03 Feb, 2020 1 commit
-
-
Oran Agra authored
-
- 30 Jan, 2020 1 commit
-
-
Guy Benoish authored
This bug affected RM_StringToLongDouble and HINCRBYFLOAT. I added tests for both cases. Main changes: 1. Fixed string2ld to fail if string contains \0 in the middle 2. Use string2ld in getLongDoubleFromObject - No point of having duplicated code here The two changes above broke RM_SaveLongDouble/RM_LoadLongDouble because the long double string was saved with length+1 (An innocent mistake, but it's actually a bug - The length passed to RM_SaveLongDouble should not include the last \0).
-
- 29 Jan, 2020 1 commit
-
-
antirez authored
-
- 30 Dec, 2019 1 commit
-
-
Guy Benoish authored
If a blocked module client times-out (or disconnects, unblocked by CLIENT command, etc.) we need to call moduleUnblockClient in order to free memory allocated by the module sub-system and blocked-client private data Other changes: Made blockedonkeys.tcl tests a bit more aggressive in order to smoke-out potential memory leaks
-
- 23 Dec, 2019 1 commit
-
-
Yossi Gottlieb authored
-
- 20 Dec, 2019 1 commit
-
-
antirez authored
-
- 18 Dec, 2019 3 commits
-
-
antirez authored
-
antirez authored
-
zhaozhao.zz authored
-
- 17 Dec, 2019 4 commits
-
-
Madelyn Olson authored
-
Madelyn Olson authored
-
Madelyn Olson authored
-
Madelyn Olson authored
-
- 13 Dec, 2019 1 commit
-
-
antirez authored
-
- 12 Dec, 2019 3 commits
-
-
Yossi Gottlieb authored
With the previous API, a NULL return value was ambiguous and could represent either an old value of NULL or an error condition. The new API returns a status code and allows the old value to be returned by-reference. This commit also includes test coverage based on tests/modules/datatype.c which did not exist at the time of the original commit.
-
antirez authored
-
Oran Agra authored
This is useful to tell redis and modules to try to avoid doing things that may increment the replication offset, and should be used when draining a master and waiting for replicas to be in perfect sync before a failover.
-
- 11 Dec, 2019 1 commit
-
-
Oran Agra authored
-
- 09 Dec, 2019 1 commit
-
-
antirez authored
-
- 05 Dec, 2019 1 commit
-
-
antirez authored
-
- 03 Dec, 2019 1 commit
-
-
antirez authored
-
- 22 Nov, 2019 2 commits
-
-
zhaozhao.zz authored
in case of nested MULTI/EXEC
-
zhaozhao.zz authored
Random command like SPOP with count is replicated as some SREM operations, and store them in also_propagate array to propagate after the call, but this would break atomicity. To keep the command's atomicity, wrap also_propagate array with MULTI/EXEC.
-
- 21 Nov, 2019 1 commit
-
-
antirez authored
-
- 19 Nov, 2019 1 commit
-
-
Yossi Gottlieb authored
RM_Call() will now use EBADF and ENONET in addition to EINVAL in order to provide more information about errors (i.e. when return value is NULL).
-
- 14 Nov, 2019 3 commits
-
-
Oran Agra authored
trimming talk about RESP protocol from API docs (should be independent to that anyway)
-
Oran Agra authored
-
Yossi Gottlieb authored
This is a light-weight replace function, useful for use cases such as realloc()ing an existing value, etc. Using RM_ModuleTypeSetValue() in such cases is wasteful and complex as it attempts to delete the old value, call its destructor, etc.
-
- 11 Nov, 2019 2 commits
-
-
Oran Agra authored
- Adding RM_ScanKey - Adding tests for RM_ScanKey - Refactoring RM_Scan API Changes in RM_Scan - cleanup in docs and coding convention - Moving out of experimantal Api - Adding ctx to scan callback - Dont use cursor of -1 as an indication of done (can be a valid cursor) - Set errno when returning 0 for various reasons - Rename Cursor to ScanCursor - Test filters key that are not strings, and opens a key if NULL
-
meir@redislabs.com authored
The implementation expose the following new functions: 1. RedisModule_CursorCreate - allow to create a new cursor object for keys scanning 2. RedisModule_CursorRestart - restart an existing cursor to restart the scan 3. RedisModule_CursorDestroy - destroy an existing cursor 4. RedisModule_Scan - scan keys The RedisModule_Scan function gets a cursor object, a callback and void* (used as user private data). The callback will be called for each key in the database proving the key name and the value as RedisModuleKey.
-
- 10 Nov, 2019 1 commit
-
-
Oran Agra authored
- the API name was odd, separated to two apis one for LRU and one for LFU - the LRU idle time was in 1 second resolution, which might be ok for RDB and RESTORE, but i think modules may need higher resolution - adding tests for LFU and for handling maxmemory policy mismatch
-
- 06 Nov, 2019 5 commits
-
-
meir@redislabs.com authored
-
Guy Benoish authored
Fixes GitHub issue #6492 Added stream support in RM_KeyType and RM_ValueLength. Also moduleDelKeyIfEmpty was updated, even though it has no effect now (It will be relevant when stream type direct API will be coded - i.e. RM_StreamAdd)
-
meir@redislabs.com authored
-
meir@redislabs.com authored
-
meir@redislabs.com authored
The exposed functions: 1. RedisModule_GetUsedMemoryPercentage - return the used memory 2. RedisModue_MallocSize - return for a given pointer, the amount of memory allocated for this pointer
-
- 04 Nov, 2019 3 commits
-
-
Yossi Gottlieb authored
Add two new functions that leverage the RedisModuleDataType mechanism for RDB serialization/deserialization and make it possible to use it to/from arbitrary strings: * RM_SaveDataTypeToString() * RM_LoadDataTypeFromString()
-
artix authored
-
artix authored
New API: - RedisModule_StringToLongDouble - RedisModule_CreateStringFromLongDouble - RedisModule_ReplyWithLongDouble
-