Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alexdicianu/redis_toolkit
/ functions
Functions
25 in github.com/alexdicianu/redis_toolkit
⨍
Functions
25
◇
Types & classes
3
↓ 5 callers
Method
IsLeaf
Checks if node is leaf.
report/app/src/prefixtree/prefixtree.go:98
↓ 2 callers
Function
calculateAvg
Returns the average of a generic x integer, divided by count.
report/app/src/report/hitrate/hitrate.go:155
↓ 2 callers
Function
get_lifetime
(last_set, lifetime=0)
injector/src/injector.py:43
↓ 1 callers
Method
BuildTree
Builds the trie (or prefix tree) recursively after it decomposes the key by prefix.
report/app/src/prefixtree/prefixtree.go:44
↓ 1 callers
Function
Load
Decode Gob file.
report/app/main.go:30
↓ 1 callers
Method
PopulateForHitrateReport
Executes one last pass through the finished tree. Populating the tree for running a hit rate report.
report/app/src/prefixtree/prefixtree.go:153
↓ 1 callers
Method
PopulateForMemoryReport
Executes one last pass through the finished tree. Populating the tree for running a memory distribution report.
report/app/src/prefixtree/prefixtree.go:126
↓ 1 callers
Function
ProgressBar
Shows visual progress in the form of a loading bar.
report/app/src/prefixtree/prefixtree.go:309
↓ 1 callers
Function
Save
Encode via Gob to file. simple way to dump an already built object to a local file.
report/app/main.go:19
↓ 1 callers
Method
addChild
Adds child nodes to the trie.
report/app/src/prefixtree/prefixtree.go:65
↓ 1 callers
Function
buildHitrateReport
Traverses the tree on the specified level and gathers the data.
report/app/src/report/hitrate/hitrate.go:98
↓ 1 callers
Function
buildMemoryReport
Traverses the tree on the specified level and gathers the data.
report/app/src/report/memory/memory.go:56
↓ 1 callers
Function
buildPrefixes
Builds a list of prefixes, each of them one level deeper than its predecesor. Example: - pantheon-redis - pantheon-redis:cache_page - pantheon-redis:c
report/app/src/prefixtree/prefixtree.go:282
↓ 1 callers
Function
calculateHitrate
Calculates the hitrate based on the (gets/(gets+sets))*100 formula.
report/app/src/report/hitrate/hitrate.go:139
↓ 1 callers
Function
contains
(slice []string, item string)
report/app/src/prefixtree/prefixtree.go:298
↓ 1 callers
Method
getChildrenKeys
Returns a list of children keys.
report/app/src/prefixtree/prefixtree.go:85
↓ 1 callers
Function
get_op
(operation)
injector/src/injector.py:37
↓ 1 callers
Function
redisKeySize
Returns the key size of a specific key. Depending on the key's type, different commands need to be executed.
report/app/src/prefixtree/prefixtree.go:231
↓ 1 callers
Function
redis_del
()
injector/src/injector.py:30
↓ 1 callers
Function
redis_get
()
injector/src/injector.py:6
↓ 1 callers
Function
redis_set
()
injector/src/injector.py:15
Method
DumpTree
(level int)
report/app/src/prefixtree/prefixtree.go:105
Function
RunHitrateReport
Gathers data and builds a hit rate report.
report/app/src/report/hitrate/hitrate.go:42
Function
RunMemoryReport
Gathers data and builds a memory distribution report.
report/app/src/report/memory/memory.go:28
Function
main
()
report/app/main.go:40