MCPcopy Create free account
hub / github.com/dadgar/onecache / markClientVersion

Method markClientVersion

onecache/onecache_rpc.go:137–141  ·  view source on GitHub ↗

markClientVersion is used to mark that a key was set by a client and not by replication.

(key string)

Source from the content-addressed store, hash-verified

135// markClientVersion is used to mark that a key was set by a client and not by
136// replication.
137func (r *rpcServer) markClientVersion(key string) {
138 r.l.Lock()
139 defer r.l.Unlock()
140 delete(r.versions, key)
141}
142
143// Set is used to set the value of a key.
144func (r *rpcServer) Set(args StorageArgs, resp *struct{}) error {

Callers 11

SetMethod · 0.95
CasMethod · 0.95
AddMethod · 0.95
ReplaceMethod · 0.95
AppendMethod · 0.95
PrependMethod · 0.95
IncrementMethod · 0.95
DecrementMethod · 0.95
ContainsMethod · 0.95
TouchMethod · 0.95
RemoveMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected