MCPcopy Create free account
hub / github.com/Comcast/rulio / CachedSlurp

Function CachedSlurp

core/javascript.go:91–110  ·  view source on GitHub ↗

CachedSlurp gets the contents (string) at a URL using a little LRU cache. The cache has a TTL of 5 seconds See the constants SlurpCacheSize and SlurpCacheTTLSecs.

(ctx *Context, url string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

fetchLibraryMethod · 0.85
RunJavascriptFunction · 0.85

Calls 6

StopMethod · 0.95
NewTimerFunction · 0.85
LogFunction · 0.85
SlurpFunction · 0.85
GetMethod · 0.65
AddMethod · 0.65

Tested by

no test coverage detected