Documentation
¶
Index ¶
Constants ¶
View Source
const Name = "cache"
Name is the library identifier and the global binding installed into the runtime.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*libConfig)
Option customizes the cache library.
func WithKeyPrefix ¶
WithKeyPrefix prepends prefix to every key the scripts touch, sandboxing them into their own key namespace so host cache entries stay out of reach. The prefix is applied verbatim — include a separator (e.g. "js:") if one is wanted.
Click to show internal directories.
Click to hide internal directories.