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
↓ 8 callers
Function
strbuf_free
If strbuf_t has not been dynamically allocated, strbuf_free() can * be called any number of times strbuf_init() */
deps/lua/src/strbuf.c:104
↓ 8 callers
Function
streamIteratorStart
Initialize the stream iterator, so that we can call iterating functions * to get the next items. This requires a corresponding streamIteratorStop()
src/t_stream.cpp:1045
↓ 8 callers
Function
streamLookupCG
Lookup the consumer group in the specified stream and returns its * pointer, otherwise if there is no such group, NULL is returned. */
src/t_stream.cpp:2291
↓ 8 callers
Function
streamLookupConsumer
Lookup the consumer with the specified name in the group 'cg': if the * consumer does not exist it is created unless SLC_NOCREAT flag was specified.
src/t_stream.cpp:2301
↓ 8 callers
Function
tofile
deps/lua/src/liolib.c:72
↓ 8 callers
Function
tryObjectEncoding
Try to encode a string object in order to save space */
src/object.cpp:476
↓ 8 callers
Method
try_lock
src/fastlock.h:70
↓ 8 callers
Function
tsd_assert_fast
deps/memkind/src/jemalloc/include/jemalloc/internal/tsd.h:237
↓ 8 callers
Function
tsd_assert_fast
deps/jemalloc/include/jemalloc/internal/tsd.h:323
↓ 8 callers
Function
updateDictResizePolicy
This function is called once a background process of some kind terminates, * as we want to avoid resizing the hash tables when there is a child in or
src/server.cpp:1708
↓ 8 callers
Function
validate_fill
deps/memkind/src/jemalloc/test/integration/rallocx.c:85
↓ 8 callers
Function
validate_fill
deps/jemalloc/test/integration/rallocx.c:85
↓ 8 callers
Function
zipEntrySafe
Fills a struct with all information about an entry. * This function is safe to use on untrusted pointers, it'll make sure not to * try to access mem
src/ziplist.c:629
↓ 8 callers
Function
zipmapEncodeLength
Encode the length 'l' writing it in 'p'. If p is NULL it just returns * the amount of bytes required to encode such a length. */
src/zipmap.c:120
↓ 8 callers
Function
zzlLexValueLteMax
src/t_zset.cpp:921
↓ 7 callers
Function
ACLFreeUser
Release the memory used by the user structure. Note that this function * will not remove the user from the Users global radix tree. */
src/acl.cpp:295
↓ 7 callers
Function
BoolFromGTestEnv
Reads and returns the Boolean environment variable corresponding to the given flag; if it's not set, returns default_value. The value is considered t
deps/memkind/src/test/gtest_fused/gtest/gtest-all.cc:9739
↓ 7 callers
Method
FFat
src/expire.h:210
↓ 7 callers
Function
FInternalKey
src/storage/rocksdb.cpp:17
↓ 7 callers
Function
ForEach
deps/memkind/src/test/gtest_fused/gtest/gtest-all.cc:702
↓ 7 callers
Function
FormatFileLocation
Formats a source file path and a line number as they would appear in an error message from the compiler used to compile this code.
deps/memkind/src/test/gtest_fused/gtest/gtest-all.cc:9446
↓ 7 callers
Function
GTEST_LOCK_EXCLUDED_
deps/memkind/src/test/gtest_fused/gtest/gtest-all.cc:5564
↓ 7 callers
Function
GetKeys
deps/memkind/src/test/bat_tests.cpp:220
↓ 7 callers
Function
LRU_CLOCK
This function is used to obtain the current LRU clock. * If the current resolution is lower than the frequency we refresh the * LRU clock (as it sho
src/evict.cpp:81
↓ 7 callers
Function
ParseStringFlag
Parses a string for a string flag, in the form of "--flag=value". On success, stores the value of the flag in *value, and returns true. On failure,
deps/memkind/src/test/gtest_fused/gtest/gtest-all.cc:6532
↓ 7 callers
Function
RM_CreateString
Create a new module string object. The returned string must be freed * with RedisModule_FreeString(), unless automatic memory is enabled. * * The s
src/module.cpp:1157
↓ 7 callers
Function
StringStreamToString
Converts the buffer in a stringstream to an std::string, converting NUL bytes to "\\0" along the way.
deps/memkind/src/test/gtest_fused/gtest/gtest-all.cc:3431
↓ 7 callers
Function
SumOverTestCaseList
Iterates over a vector of TestCases, keeping a running sum of the results of calling a given int-returning method on each. Returns the sum.
deps/memkind/src/test/gtest_fused/gtest/gtest-all.cc:1787
↓ 7 callers
Method
UponLeavingGTest
deps/memkind/src/test/gtest_fused/gtest/gtest-all.cc:5306
↓ 7 callers
Function
_dictExpand
Expand or create the hash table, * when malloc_failed is non-NULL, it'll avoid panic if malloc fails (in which case it'll be set to 1). * Returns DI
src/dict.cpp:138
↓ 7 callers
Function
accum_atomic_zu
deps/memkind/src/jemalloc/src/ctl.c:575
↓ 7 callers
Function
aeStop
src/ae.cpp:422
↓ 7 callers
Function
base_ind_get
deps/jemalloc/include/jemalloc/internal/base_inlines.h:4
↓ 7 callers
Function
bg_unlink
Plain unlink() can block for quite some time in order to actually apply * the file deletion to the filesystem. This call removes the file in a * bac
src/replication.cpp:166
↓ 7 callers
Function
bitmap_full
deps/memkind/src/jemalloc/include/jemalloc/internal/bitmap.h:175
↓ 7 callers
Function
bitmap_init
deps/memkind/src/jemalloc/src/bitmap.c:44
↓ 7 callers
Function
bitmap_init
deps/jemalloc/src/bitmap.c:44
↓ 7 callers
Function
bytesToHuman
Convert an amount of bytes into a human readable string in the form * of 100B, 2G, 100M, 4K, and so forth. */
src/server.cpp:5549
↓ 7 callers
Function
ckh_delete
deps/jemalloc/src/ckh.c:416
↓ 7 callers
Function
ckh_remove
deps/memkind/src/jemalloc/src/ckh.c:488
↓ 7 callers
Function
ckh_remove
deps/jemalloc/src/ckh.c:489
↓ 7 callers
Function
closeChildInfoPipe
Close the pipes opened with openChildInfoPipe(). */
src/childinfo.cpp:58
↓ 7 callers
Function
clusterDelSlot
Delete the specified slot marking it as unassigned. * Returns C_OK if the slot was assigned, otherwise if the slot was * already unassigned C_ERR is
src/cluster.cpp:3955
↓ 7 callers
Function
clusterManagerCheckCluster
src/redis-cli-cpphelper.cpp:581
↓ 7 callers
Function
clusterManagerClearSlotStatus
src/redis-cli.c:3125
↓ 7 callers
Function
clusterManagerMoveSlot
Move slots between source and target nodes using MIGRATE. * * Options: * CLUSTER_MANAGER_OPT_VERBOSE -- Print a dot for every moved key. * CLUSTER
src/redis-cli.c:3533
↓ 7 callers
Function
clusterSendMessage
Put stuff into the send buffer. * * It is guaranteed that this function will never have as a side effect * the link to be invalidated, so it is saf
src/cluster.cpp:2447
↓ 7 callers
Function
clusterSendPing
Send a PING or PONG packet to the specified node, making sure to add enough * gossip information. */
src/cluster.cpp:2594
↓ 7 callers
Method
commitChanges
src/db.cpp:3029
↓ 7 callers
Function
crc64
Compute crc64 */
src/crc64.c:121
↓ 7 callers
Function
createClusterNode
Create a new cluster node, with the specified flags. * If "nodename" is NULL this is considered a first handshake and a random * node name is assign
src/cluster.cpp:820
↓ 7 callers
Function
createObjectFromStreamID
Similar to the above function, but just creates an object, usually useful * for replication purposes to create arguments. */
src/t_stream.cpp:1360
↓ 7 callers
Function
createQuicklistObject
src/object.cpp:255
↓ 7 callers
Function
createSentinelRedisInstance
src/sentinel.cpp:1295
↓ 7 callers
Method
createSnapshot
src/snapshot.cpp:29
↓ 7 callers
Method
deallocate
* Deallocates memory associated with pointer returned by allocate() using hbw_free(). */
deps/memkind/src/include/hbw_allocator.h:101
↓ 7 callers
Function
deserializeExpire
src/db.cpp:3219
↓ 7 callers
Function
dictUnlink
Remove an element from the table, but without actually releasing * the key, value and dictionary entry. The dictionary entry is returned * if the el
src/dict.cpp:781
↓ 7 callers
Function
die
deps/lua/src/strbuf.c:32
↓ 7 callers
Function
do_connect
deps/hiredis/test.c:200
↓ 7 callers
Function
do_epoch
deps/memkind/src/jemalloc/test/unit/decay.c:75
↓ 7 callers
Function
do_prof_reset
deps/memkind/src/jemalloc/test/unit/prof_reset.c:30
↓ 7 callers
Function
do_prof_reset
deps/jemalloc/test/unit/prof_reset.c:30
↓ 7 callers
Function
dupStringObject
Duplicate a string object, with the guarantee that the returned object * has the same encoding as the original one. * * This function also guarante
src/object.cpp:234
↓ 7 callers
Function
exitFromChild
After an RDB dump or AOF rewrite we exit from children using _exit() instead of * exit(), because the latter may interact with the same file objects
src/server.cpp:1318
↓ 7 callers
Function
extent_binshard_get
deps/jemalloc/include/jemalloc/internal/extent_inlines.h:74
↓ 7 callers
Function
extent_bsize_get
deps/jemalloc/include/jemalloc/internal/extent_inlines.h:149
↓ 7 callers
Function
extent_deregister
deps/memkind/src/jemalloc/src/extent.c:740
↓ 7 callers
Function
extent_hooks_get
deps/jemalloc/src/extent.c:201
↓ 7 callers
Function
extent_list_first
deps/memkind/src/jemalloc/include/jemalloc/internal/extent_inlines.h:322
↓ 7 callers
Function
extent_list_first
deps/jemalloc/include/jemalloc/internal/extent_inlines.h:411
↓ 7 callers
Function
extent_past_get
deps/memkind/src/jemalloc/include/jemalloc/internal/extent_inlines.h:149
↓ 7 callers
Function
extent_record
* Does the metadata management portions of putting an unused extent into the * given extents_t (coalesces, deregisters slab interiors, the heap opera
deps/jemalloc/src/extent.c:1691
↓ 7 callers
Function
extent_size_quantize_ceil
deps/jemalloc/src/extent.c:256
↓ 7 callers
Function
extent_size_quantize_floor
deps/memkind/src/jemalloc/src/extent.c:225
↓ 7 callers
Function
extent_size_quantize_floor
deps/jemalloc/src/extent.c:232
↓ 7 callers
Function
extent_state_set
deps/memkind/src/jemalloc/include/jemalloc/internal/extent_inlines.h:254
↓ 7 callers
Function
extent_state_set
deps/jemalloc/include/jemalloc/internal/extent_inlines.h:306
↓ 7 callers
Function
extent_unlock
deps/jemalloc/include/jemalloc/internal/extent_inlines.h:18
↓ 7 callers
Function
extent_zeroed_set
deps/memkind/src/jemalloc/include/jemalloc/internal/extent_inlines.h:260
↓ 7 callers
Function
extent_zeroed_set
deps/jemalloc/include/jemalloc/internal/extent_inlines.h:312
↓ 7 callers
Function
extents_leak
deps/memkind/src/jemalloc/src/extent.c:535
↓ 7 callers
Function
ffs_lu
deps/memkind/src/jemalloc/include/jemalloc/internal/bit_util.h:20
↓ 7 callers
Function
flushReplBacklogToClients
src/replication.cpp:5611
↓ 7 callers
Function
gen_rand64
* This function generates and returns 64-bit pseudorandom number. * init_gen_rand or init_by_array must be called before this function. * The functi
deps/memkind/src/jemalloc/test/src/SFMT.c:482
↓ 7 callers
Function
gen_rand64
* This function generates and returns 64-bit pseudorandom number. * init_gen_rand or init_by_array must be called before this function. * The functi
deps/jemalloc/test/src/SFMT.c:482
↓ 7 callers
Function
getKeysFromCommand
Return all the arguments that are keys in the command passed via argc / argv. * * The command returns the positions of all the key arguments inside
src/db.cpp:2198
↓ 7 callers
Function
getTimeoutFromObjectOrReply
Get a timeout value from an object and store it into 'timeout'. * The final timeout is always stored as milliseconds as a time where the * timeout w
src/timeout.cpp:166
↓ 7 callers
Function
get_lg_prof_sample
deps/memkind/src/jemalloc/test/unit/prof_reset.c:19
↓ 7 callers
Function
get_lg_prof_sample
deps/jemalloc/test/unit/prof_reset.c:19
↓ 7 callers
Function
get_tcache_flag
deps/memkind/src/src/memkind_arena.c:453
↓ 7 callers
Function
hashTypeConvert
src/t_hash.cpp:500
↓ 7 callers
Function
hashTypeInitIterator
src/t_hash.cpp:327
↓ 7 callers
Function
hashTypeNext
Move to the next entry in the hash. Return C_OK when the next entry * could be found and C_ERR when the iterator reaches the end. */
src/t_hash.cpp:351
↓ 7 callers
Function
hbw_realloc
deps/memkind/src/src/hbwmalloc.c:289
↓ 7 callers
Function
hdr_iter_init
deps/hdr_histogram/hdr_histogram.c:809
↓ 7 callers
Function
iallocztm
deps/memkind/src/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:22
↓ 7 callers
Function
imalloc
Returns the errno-style error code of the allocation. */
deps/memkind/src/jemalloc/src/jemalloc.c:1925
↓ 7 callers
Function
init_gen_rand
* This function initializes the internal state array with a 32-bit * integer seed. * * @param seed a 32-bit integer used as the seed. */
deps/memkind/src/jemalloc/test/src/SFMT.c:607
↓ 7 callers
Function
init_gen_rand
* This function initializes the internal state array with a 32-bit * integer seed. * * @param seed a 32-bit integer used as the seed. */
deps/jemalloc/test/src/SFMT.c:607
← previous
next →
901–1,000 of 10,473, ranked by callers