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
↓ 49 callers
Function
getLongLongFromObjectOrReply
src/object.cpp:771
↓ 49 callers
Function
rioWriteBulkString
Write binary-safe string in the format: "$<count>\r\n<payload>\r\n". */
src/rio.cpp:467
↓ 49 callers
Function
ziplistGet
Get entry pointed to by 'p' and store in either '*sstr' or 'sval' depending * on the encoding of the entry. '*sstr' is always set to NULL to be able
src/ziplist.c:1238
↓ 48 callers
Function
arenas_i
deps/memkind/src/jemalloc/src/ctl.c:662
↓ 48 callers
Function
getLongFromObjectOrReply
src/object.cpp:799
↓ 48 callers
Function
lua_setfield
deps/lua/src/lapi.c:657
↓ 47 callers
Function
hi_sdsfree
Free an hisds string. No operation is performed if 's' is NULL. */
deps/hiredis/sds.c:157
↓ 46 callers
Function
sz_size2index
deps/jemalloc/include/jemalloc/internal/sz.h:163
↓ 45 callers
Function
redisFree
deps/hiredis/hiredis.c:714
↓ 44 callers
Method
append
deps/memkind/src/test/allocator_perf_tool/CSVLogger.hpp:45
↓ 44 callers
Function
malloc_printf
deps/memkind/src/jemalloc/src/malloc_io.c:672
↓ 43 callers
Function
lookupKeyWrite
src/db.cpp:255
↓ 43 callers
Function
memkind_create_pmem
deps/memkind/src/src/memkind.c:724
↓ 43 callers
Function
rdbLoadLen
This is like rdbLoadLenByRef() but directly returns the value read * from the RDB stream, signaling an error by returning RDB_LENERR * (since it is
src/rdb.cpp:247
↓ 42 callers
Function
addReplyBulk
Add a Redis Object as a bulk reply */
src/networking.cpp:982
↓ 42 callers
Function
arena_get
deps/memkind/src/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_a.h:82
↓ 42 callers
Function
extent_base_get
deps/jemalloc/include/jemalloc/internal/extent_inlines.h:125
↓ 42 callers
Function
lpNext
If 'p' points to an element of the listpack, calling lpNext() will return * the pointer to the next element (the one on the right), or NULL if 'p' *
src/listpack.c:455
↓ 42 callers
Function
sz_size2index
deps/memkind/src/jemalloc/include/jemalloc/internal/sz.h:164
↓ 41 callers
Function
createIntConfig
src/config.cpp:2380
↓ 41 callers
Function
log_err
deps/memkind/src/src/memkind_log.c:86
↓ 41 callers
Function
malloc_mutex_assert_owner
deps/jemalloc/include/jemalloc/internal/mutex.h:238
↓ 41 callers
Function
memkind_destroy_kind
Kind destruction. */
deps/memkind/src/src/memkind.c:327
↓ 41 callers
Function
raxSize
Return the number of elements inside the radix tree. */
src/rax.c:1821
↓ 41 callers
Function
ticker_read
deps/memkind/src/jemalloc/include/jemalloc/internal/ticker.h:30
↓ 41 callers
Function
ticker_read
deps/jemalloc/include/jemalloc/internal/ticker.h:30
↓ 40 callers
Function
StreamableToString
deps/memkind/src/test/gtest_fused/gtest/gtest.h:4552
↓ 40 callers
Function
__redisSetError
deps/hiredis/hiredis.c:668
↓ 40 callers
Function
addReplyNull
src/networking.cpp:945
↓ 40 callers
Function
freeClientAsync
Schedule a client to free it at a safe time in the serverCron() function. * This function is useful when we need to terminate a client but we are in
src/networking.cpp:1759
↓ 40 callers
Function
index2adr
deps/lua/src/lapi.c:49
↓ 40 callers
Function
luaL_checknumber
deps/lua/src/lauxlib.c:176
↓ 40 callers
Function
lua_pushnil
deps/lua/src/lapi.c:421
↓ 40 callers
Function
quicklistIndex
Populate 'entry' with the element at the specified zero-based index * where 0 is the head, 1 is the element next to head * and so on. Negative integ
src/quicklist.c:1249
↓ 40 callers
Function
string2ll
Convert a string into a long long. Returns 1 if the string could be parsed * into a (non-overflowing) long long, 0 otherwise. The value will be set t
src/util.c:385
↓ 40 callers
Function
witness_assert_depth_to_rank
deps/memkind/src/jemalloc/include/jemalloc/internal/witness.h:230
↓ 40 callers
Function
witness_assert_depth_to_rank
deps/jemalloc/include/jemalloc/internal/witness.h:231
↓ 39 callers
Function
genstr
Generate new string concatenating integer i against string 'prefix' */
src/quicklist.c:1706
↓ 39 callers
Method
key
src/server.h:1096
↓ 39 callers
Function
nstime_init2
deps/memkind/src/jemalloc/src/nstime.c:16
↓ 39 callers
Function
nstime_init2
deps/jemalloc/src/nstime.c:16
↓ 39 callers
Function
rewriteConfigRewriteLine
Rewrite the specified configuration option with the new "line". * It progressively uses lines of the file that were already used for the same * conf
src/config.cpp:1479
↓ 39 callers
Function
token_init
deps/memkind/src/jemalloc/test/unit/stats_print.c:42
↓ 39 callers
Function
token_init
deps/jemalloc/test/unit/stats_print.c:42
↓ 39 callers
Function
tsd_fetch
deps/jemalloc/include/jemalloc/internal/tsd.h:378
↓ 39 callers
Method
unlock
src/fastlock.h:75
↓ 38 callers
Function
activeDefragAlloc
src/defrag.cpp:57
↓ 38 callers
Method
clear
src/db.cpp:2718
↓ 38 callers
Function
dictDelete
Remove an element, returning DICT_OK on success or DICT_ERR if the * element was not found. */
src/dict.cpp:756
↓ 38 callers
Function
lua_pushinteger
deps/lua/src/lapi.c:437
↓ 38 callers
Function
sdscatsds
Append the specified sds 't' to the existing sds 's'. * * After the call, the modified sds string is no longer valid and all the * references must
src/sds.c:497
↓ 37 callers
Function
addReplyDeferredLen
src/networking.cpp:705
↓ 36 callers
Function
addReplyProto
This low level function just adds whatever protocol you send it to the * client buffer, trying the static buffer initially, and using the string * o
src/networking.cpp:483
↓ 36 callers
Function
extent_base_get
deps/memkind/src/jemalloc/include/jemalloc/internal/extent_inlines.h:109
↓ 36 callers
Function
malloc_mutex_assert_owner
deps/memkind/src/jemalloc/include/jemalloc/internal/mutex.h:220
↓ 36 callers
Function
rdbSaveLen
Saves an encoded length. The first two bits in the first byte are used to * hold the encoding type. See the RDB_* definitions for more information *
src/rdb.cpp:164
↓ 35 callers
Function
check_entry_exit_locking
* Ensure that we don't hold any locks upon entry to or exit from allocator * code (in a "broad" sense that doesn't count a reentrant allocation as an
deps/jemalloc/src/jemalloc.c:683
↓ 35 callers
Function
lookupKeyRead
Like lookupKeyReadWithFlags(), but does not use any flag, which is the * common case. */
src/db.cpp:205
↓ 35 callers
Function
sdsfromlonglong
Create an sds string from a long long value. It is much faster than: * * sdscatprintf(sdsempty(),"%lld\n", value); */
src/sds.c:591
↓ 35 callers
Function
ustime
Return the UNIX time in microseconds */
src/server.cpp:1299
↓ 34 callers
Method
FExpires
src/server.h:985
↓ 34 callers
Function
check
deps/lua/src/lparser.c:89
↓ 34 callers
Function
check_entry_exit_locking
* Ensure that we don't hold any locks upon entry to or exit from allocator * code (in a "broad" sense that doesn't count a reentrant allocation as an
deps/memkind/src/jemalloc/src/jemalloc.c:668
↓ 34 callers
Function
clusterDoBeforeSleep
src/cluster.cpp:3856
↓ 34 callers
Method
empty
deps/memkind/src/test/random_sizes_allocator.h:71
↓ 34 callers
Function
lookupKeyReadOrReply
src/db.cpp:267
↓ 34 callers
Function
lua_settable
deps/lua/src/lapi.c:645
↓ 34 callers
Function
nstime_compare
deps/jemalloc/src/nstime.c:46
↓ 34 callers
Function
tsdn_tsd
deps/jemalloc/include/jemalloc/internal/tsd.h:233
↓ 34 callers
Method
val
src/server.h:1097
↓ 33 callers
Method
GetString
Gets the text streamed to this object so far as an std::string. Each '\0' character in the buffer is replaced with "\\0".
deps/memkind/src/test/gtest_fused/gtest/gtest-all.cc:2430
↓ 33 callers
Function
aeReleaseLock
src/ae.cpp:876
↓ 33 callers
Function
dbDelete
This is a wrapper whose behavior depends on the Redis lazy free * configuration. Deletes the key synchronously or asynchronously. */
src/db.cpp:523
↓ 33 callers
Function
emitter_kv
deps/jemalloc/include/jemalloc/internal/emitter.h:433
↓ 33 callers
Method
empty
src/gc.h:63
↓ 33 callers
Function
moduleFireServerEvent
This is called by the Redis internals every time we want to fire an * event that can be interceppted by some module. The pointer 'data' is useful *
src/module.cpp:8457
↓ 33 callers
Function
nstime_compare
deps/memkind/src/jemalloc/src/nstime.c:46
↓ 33 callers
Function
redisFormatCommand
Format a command according to the Redis protocol. This function * takes a format similar to printf: * * %s represents a C null terminated string yo
deps/hiredis/hiredis.c:548
↓ 33 callers
Function
sdsrange
Turn the string into a smaller (or equal) string containing only the * substring specified by the 'start' and 'end' indexes. * * start and end can
src/sds.c:840
↓ 33 callers
Function
sz_index2size
deps/jemalloc/include/jemalloc/internal/sz.h:204
↓ 33 callers
Function
test_is_selected
Return true if the named test was selected using the -t command line * switch, or if all the tests are selected (no -t passed by user). */
src/redis-benchmark.cpp:1686
↓ 32 callers
Function
malloc_mutex_init
deps/jemalloc/src/mutex.c:134
↓ 32 callers
Function
realloc
deps/memkind/src/autohbw/autohbw.c:419
↓ 32 callers
Function
redisAsyncCommand
deps/hiredis/async.c:838
↓ 32 callers
Function
sdscmp
Compare two sds strings s1 and s2 with memcmp(). * * Return value: * * positive if s1 > s2. * negative if s1 < s2. * 0 if s1 and s2
src/sds.c:876
↓ 31 callers
Function
aeAcquireLock
src/ae.cpp:854
↓ 31 callers
Function
aeDeleteFileEvent
src/ae.cpp:462
↓ 31 callers
Function
extent_addr_get
deps/jemalloc/include/jemalloc/internal/extent_inlines.h:132
↓ 31 callers
Method
get
deps/memkind/src/test/gtest_fused/gtest/gtest.h:2594
↓ 31 callers
Function
sz_index2size
deps/memkind/src/jemalloc/include/jemalloc/internal/sz.h:206
↓ 31 callers
Function
test_fail
deps/jemalloc/test/src/test.c:78
↓ 31 callers
Function
zcalloc
Allocate memory and zero it or panic */
src/zmalloc.cpp:190
↓ 30 callers
Function
aeCreateFileEvent
src/ae.cpp:427
↓ 30 callers
Method
end
src/expire.h:259
↓ 30 callers
Function
extent_slab_get
deps/jemalloc/include/jemalloc/internal/extent_inlines.h:112
↓ 30 callers
Method
getrefcount
src/server.h:989
↓ 30 callers
Function
idxof
deps/memkind/src/jemalloc/test/src/SFMT.c:145
↓ 30 callers
Function
idxof
deps/jemalloc/test/src/SFMT.c:145
↓ 30 callers
Function
lua_type
deps/lua/src/lapi.c:242
↓ 30 callers
Function
zmalloc_used_memory
src/zmalloc.cpp:340
← previous
next →
101–200 of 10,473, ranked by callers