Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Snapchat/KeyDB
/ functions
Functions
10,473 in github.com/Snapchat/KeyDB
⨍
Functions
10,473
◇
Types & classes
1,847
↓ 747 callers
Function
szFromObj
src/server.h:1020
↓ 653 callers
Function
serverLog
src/fastlock.cpp:158
↓ 610 callers
Function
sdslen
src/sds.h:117
↓ 518 callers
Function
sdsfree
Free an sds string. No operation is performed if 's' is NULL. */
src/sds.c:221
↓ 483 callers
Function
ptrFromObj
src/server.h:1006
↓ 477 callers
Function
zfree
src/zmalloc.cpp:295
↓ 437 callers
Function
tsd_tsdn
deps/jemalloc/include/jemalloc/internal/tsd.h:223
↓ 373 callers
Function
tsd_tsdn
deps/memkind/src/jemalloc/include/jemalloc/internal/tsd.h:134
↓ 337 callers
Function
run_test
* Create threads and measure the cost of maintaining allocations from threads. * Allocations order is sequential (otherwise the results might be very
deps/memkind/src/test/memory_footprint_test.cpp:198
↓ 299 callers
Function
addReplyError
See addReplyErrorLength for expectations from the input string. */
src/networking.cpp:616
↓ 258 callers
Function
sdsnew
Create a new sds string starting from a null terminated C string. */
src/sds.c:199
↓ 253 callers
Function
decrRefCount
src/object.cpp:405
↓ 240 callers
Function
zmalloc
Allocate memory or panic */
src/zmalloc.cpp:130
↓ 224 callers
Function
free
deps/memkind/src/autohbw/autohbw.c:454
↓ 223 callers
Function
addReply
----------------------------------------------------------------------------- * Higher level functions to queue data on the client output buffer. *
src/networking.cpp:443
↓ 222 callers
Function
sdsempty
Create an empty (zero length) sds string. Even in this case the string * always has an implicit null term. */
src/sds.c:194
↓ 217 callers
Function
addReplyBulkCString
Add a C null term string as bulk reply */
src/networking.cpp:1011
↓ 204 callers
Function
sdscatlen
Append the specified binary-safe string pointed by 't' of 'len' bytes to the * end of the specified sds string 's'. * * After the call, the passed
src/sds.c:474
↓ 194 callers
Function
listNext
Return the next element of an iterator. * It's valid to remove the currently returned element using * listDelNode(), but not to remove other element
src/adlist.c:230
↓ 194 callers
Function
listRewind
Create an iterator in the list private iterator structure */
src/adlist.c:206
↓ 189 callers
Function
sdscatprintf
Append to the sds string 's' a string obtained using printf-alike format * specifier. * * After the call, the modified sds string is no longer vali
src/sds.c:656
↓ 179 callers
Function
addReplyLongLong
src/networking.cpp:906
↓ 177 callers
Function
malloc_mutex_unlock
deps/jemalloc/include/jemalloc/internal/mutex.h:229
↓ 173 callers
Function
freeReplyObject
Free a reply object */
deps/hiredis/hiredis.c:90
↓ 173 callers
Function
mstime
Return the UNIX time in milliseconds */
src/server.cpp:1310
↓ 169 callers
Function
sdscat
Append the specified null terminated C string to the sds string 's'. * * After the call, the passed sds string is no longer valid and all the * ref
src/sds.c:489
↓ 160 callers
Function
malloc_mutex_unlock
deps/memkind/src/jemalloc/include/jemalloc/internal/mutex.h:212
↓ 158 callers
Method
end
deps/memkind/src/test/gtest_fused/gtest/gtest.h:9390
↓ 154 callers
Function
malloc_cprintf
deps/memkind/src/jemalloc/src/malloc_io.c:660
↓ 151 callers
Function
malloc_mutex_lock
deps/jemalloc/include/jemalloc/internal/mutex.h:216
↓ 144 callers
Method
begin
deps/memkind/src/test/gtest_fused/gtest/gtest.h:9386
↓ 139 callers
Function
malloc_mutex_lock
deps/memkind/src/jemalloc/include/jemalloc/internal/mutex.h:200
↓ 131 callers
Function
dictReleaseIterator
src/dict.cpp:980
↓ 128 callers
Method
size
src/db.cpp:3091
↓ 123 callers
Function
addReplyArrayLen
src/networking.cpp:920
↓ 119 callers
Function
memkind_free
deps/memkind/src/src/memkind.c:661
↓ 117 callers
Function
dictNext
src/dict.cpp:945
↓ 114 callers
Method
level
src/server.h:1774
↓ 112 callers
Function
memkind_malloc
deps/memkind/src/src/memkind.c:565
↓ 111 callers
Function
malloc
deps/memkind/src/autohbw/autohbw.c:409
↓ 101 callers
Function
notifyKeyspaceEvent
The API provided to the rest of the Redis core is a simple function: * * notifyKeyspaceEvent(char *event, robj *key, int dbid); * * 'event' is a C
src/notify.cpp:101
↓ 99 callers
Function
createObject
src/object.cpp:44
↓ 96 callers
Function
sdsnewlen
src/sds.c:184
↓ 95 callers
Function
GlobalLocksAcquired
src/server.h:3958
↓ 91 callers
Function
makeObjectShared
Set a special refcount in the object to make it "shared": * incrRefCount and decrRefCount() will test for this special refcount * and will not touch
src/object.cpp:77
↓ 89 callers
Function
dictGetIterator
src/dict.cpp:925
↓ 88 callers
Function
checkType
src/object.cpp:440
↓ 85 callers
Function
addReplyErrorFormat
See addReplyErrorLength for expectations from the formatted string. * The formatted string is safe to contain \r and \n anywhere. */
src/networking.cpp:631
↓ 85 callers
Function
lua_pushstring
deps/lua/src/lapi.c:454
↓ 82 callers
Method
get
src/sds.h:388
↓ 81 callers
Function
listAddNodeTail
Add a new node to the list, to tail, containing the specified 'value' * pointer as value. * * On error, NULL is returned and no operation is perfor
src/adlist.c:115
↓ 81 callers
Function
raxStop
Free the iterator. */
src/rax.c:1807
↓ 80 callers
Function
dictAdd
Add an element to the target hash table */
src/dict.cpp:606
↓ 79 callers
Function
addReplyBulkCBuffer
Add a C buffer as bulk reply */
src/networking.cpp:989
↓ 78 callers
Function
listCreate
Create a new list. The created list can be freed with * listRelease(), but private value of every node need to be freed * by the user before to call
src/adlist.c:42
↓ 78 callers
Function
sdsdup
Duplicate an sds string. */
src/sds.c:205
↓ 77 callers
Function
lua_pushvalue
deps/lua/src/lapi.c:228
↓ 76 callers
Function
addReplyErrorObject
The 'err' object is expected to start with -ERRORCODE and end with \r\n. * Unlike addReplyErrorSds and others alike which rely on addReplyErrorLength
src/networking.cpp:610
↓ 74 callers
Function
dictCreate
Create a new hash table */
src/dict.cpp:110
↓ 73 callers
Function
createStringObject
src/object.cpp:145
↓ 73 callers
Function
signalModifiedKey
Note that the 'c' argument may be NULL if the key was modified out of * a context of a client. */
src/db.cpp:753
↓ 72 callers
Function
luaL_error
deps/lua/src/lauxlib.c:86
↓ 72 callers
Function
ziplistIndex
Returns an offset to use for iterating with ziplistNext. When the given * index is negative, the list is traversed back to front. When the list * do
src/ziplist.c:1152
↓ 71 callers
Function
dictFind
src/dict.cpp:872
↓ 71 callers
Function
ll2string
Convert a long long into a string. Returns the number of * characters needed to represent the number. * If the buffer is not big enough to store the
src/util.c:319
↓ 69 callers
Function
sdscatfmt
This function is similar to sdscatprintf, but much faster as it does * not rely on sprintf() family functions implemented by the libc that * are oft
src/sds.c:681
↓ 69 callers
Method
size
Returns the number of TestPartResult objects in the array.
deps/memkind/src/test/gtest_fused/gtest/gtest-all.cc:10259
↓ 68 callers
Function
raxSeek
Seek an iterator at the specified element. * Return 0 if the seek failed for syntax error or out of memory. Otherwise * 1 is returned. When 0 is ret
src/rax.c:1510
↓ 67 callers
Function
lua_pushnumber
deps/lua/src/lapi.c:429
↓ 66 callers
Function
dictRelease
Clear & Release the hash table */
src/dict.cpp:839
↓ 65 callers
Method
find
src/t_nhash.cpp:64
↓ 64 callers
Function
ValuesIn
deps/memkind/src/test/gtest_fused/gtest/gtest.h:18174
↓ 64 callers
Function
listDelNode
Remove the specified node from the specified list. * It's up to the caller to free the private value of the node. * * This function can't fail. */
src/adlist.c:168
↓ 63 callers
Function
createBoolConfig
src/config.cpp:2056
↓ 63 callers
Function
redisCommand
deps/hiredis/hiredis.c:1163
↓ 62 callers
Function
arenas_i
deps/jemalloc/src/ctl.c:761
↓ 62 callers
Function
hi_free
deps/hiredis/alloc.c:82
↓ 61 callers
Function
emitter_json_kv
Shorthand for calling emitter_json_key and then emitter_json_value. */
deps/jemalloc/include/jemalloc/internal/emitter.h:262
↓ 60 callers
Function
listRelease
Free the whole list. * * This function can't fail. */
src/adlist.c:77
↓ 60 callers
Function
sentinelEvent
Send an event to log, pub/sub, user notification script. * * 'level' is the log level for logging. Only LL_WARNING events will trigger * the execut
src/sentinel.cpp:696
↓ 58 callers
Function
quicklistRelease
Free entire quicklist. */
src/quicklist.c:161
↓ 58 callers
Function
raxNext
Go to the next element in the scope of the iterator 'it'. * If EOF (or out of memory) is reached, 0 is returned, otherwise 1 is * returned. In case
src/rax.c:1696
↓ 57 callers
Function
malloc_printf
deps/jemalloc/src/malloc_io.c:658
↓ 56 callers
Function
raxStart
Initialize a Rax iterator. This call should be performed a single time * to initialize the iterator, and must be followed by a raxSeek() call, * oth
src/rax.c:1258
↓ 55 callers
Function
hi_sdslen
deps/hiredis/sds.h:101
↓ 55 callers
Function
ldbLog
Append a log entry to the specified LDB log. */
src/scripting.cpp:1907
↓ 55 callers
Function
quicklistNew
Create a new quicklist with some default parameters. */
src/quicklist.c:138
↓ 54 callers
Function
arena_get
deps/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_a.h:84
↓ 54 callers
Function
extent_size_get
deps/jemalloc/include/jemalloc/internal/extent_inlines.h:139
↓ 54 callers
Function
sdsfreesplitres
Free the result returned by sdssplitlen(), or do nothing if 'tokens' is NULL. */
src/sds.c:955
↓ 53 callers
Function
addReplyBulkLongLong
Add a long long as a bulk reply */
src/networking.cpp:1023
↓ 53 callers
Function
zrealloc
Reallocate memory and zero it or panic */
src/zmalloc.cpp:261
↓ 52 callers
Function
quicklistPushTail
Add new entry to tail node of quicklist. * * Returns 0 if used existing tail. * Returns 1 if new tail created. */
src/quicklist.c:516
↓ 52 callers
Function
ziplistNext
Return pointer to next entry in ziplist. * * zl is the pointer to the ziplist * p is the pointer to the current element * * The element after 'p'
src/ziplist.c:1192
↓ 51 callers
Function
extent_size_get
deps/memkind/src/jemalloc/include/jemalloc/internal/extent_inlines.h:123
↓ 51 callers
Function
incrRefCount
src/object.cpp:392
↓ 50 callers
Function
lua_gettop
deps/lua/src/lapi.c:159
↓ 50 callers
Function
ziplistPush
src/ziplist.c:1143
↓ 49 callers
Method
arm
src/aelocker.h:12
↓ 49 callers
Method
data
src/compactvector.h:158
next →
1–100 of 10,473, ranked by callers