Documentation ¶ Index ¶ func Get(relpath string) ([]byte, error) func Set(relpath string, content []byte, expiresIn time.Duration) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Get ¶ func Get(relpath string) ([]byte, error) Get returns the content of previously cached if not expired. If no error is returned and bytes is set to nil, it means that either no content was never cached or the content expired. func Set ¶ func Set(relpath string, content []byte, expiresIn time.Duration) error Set stores the given content in provided cache path for the requested duration. Types ¶ This section is empty. Source Files ¶ View all Source files local.go Click to show internal directories. Click to hide internal directories.