Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KunTjz/stcache
/ functions
Functions
21 in github.com/KunTjz/stcache
⨍
Functions
21
◇
Types & classes
9
↓ 6 callers
Method
Get
(key string)
stcache/cache.go:20
↓ 2 callers
Method
Marshal
Marshal serializes cache data
stcache/cache.go:35
↓ 2 callers
Method
setWriteFlag
(flag bool)
stcache/http.go:45
↓ 1 callers
Method
Apply
Apply applies a Raft log entry to the key-value store.
stcache/fsm.go:22
↓ 1 callers
Function
NewCacheManager
()
stcache/cache.go:14
↓ 1 callers
Function
NewHttpServer
(ctx *stCachedContext, log *log.Logger)
stcache/http.go:26
↓ 1 callers
Function
NewOptions
()
stcache/options.go:15
↓ 1 callers
Method
Set
(key string, value string)
stcache/cache.go:27
↓ 1 callers
Method
UnMarshal
UnMarshal deserializes cache data
stcache/cache.go:43
↓ 1 callers
Method
checkWritePermission
()
stcache/http.go:41
↓ 1 callers
Function
joinRaftCluster
joinRaftCluster joins a node to raft cluster
stcache/cluster.go:94
↓ 1 callers
Function
newRaftNode
(opts *options, ctx *stCachedContext)
stcache/cluster.go:36
↓ 1 callers
Function
newRaftTransport
(opts *options)
stcache/cluster.go:24
Method
Persist
Persist saves the FSM snapshot out to the given sink.
stcache/snapshot.go:12
Method
Release
()
stcache/snapshot.go:31
Method
Restore
Restore stores the key-value store to a previous state.
stcache/fsm.go:38
Method
Snapshot
Snapshot returns a latest snapshot
stcache/fsm.go:33
Method
doGet
(w http.ResponseWriter, r *http.Request)
stcache/http.go:53
Method
doJoin
doJoin handles joining cluster request
stcache/http.go:102
Method
doSet
doSet saves data to cache, only raft master node provides this api
stcache/http.go:68
Function
main
()
stcache/main.go:23