MCPcopy Create free account
hub / github.com/gorilla/context / clear

Function clear

context.go:98–101  ·  view source on GitHub ↗

clear is Clear without the lock.

(r *http.Request)

Source from the content-addressed store, hash-verified

96
97// clear is Clear without the lock.
98func clear(r *http.Request) {
99 delete(data, r)
100 delete(datat, r)
101}
102
103// Purge removes request data stored for longer than maxAge, in seconds.
104// It returns the amount of requests removed.

Callers 2

ClearFunction · 0.85
PurgeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…