Documentation ¶ Index ¶ func Get(server, tool string, args json.RawMessage) ([]byte, int, bool) func GetMetadata(server, tool string, args json.RawMessage) (time.Duration, time.Duration, bool) func Put(server, tool string, args json.RawMessage, content []byte, exitCode int, ...) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Get ¶ func Get(server, tool string, args json.RawMessage) ([]byte, int, bool) Get looks up a cached response. Returns nil if not found or expired. func GetMetadata ¶ func GetMetadata(server, tool string, args json.RawMessage) (time.Duration, time.Duration, bool) GetMetadata returns cache age and ttl when a valid entry exists. func Put ¶ func Put(server, tool string, args json.RawMessage, content []byte, exitCode int, ttl time.Duration) error Put stores a response in the cache. Types ¶ This section is empty. Source Files ¶ View all Source files cache.go Click to show internal directories. Click to hide internal directories.