Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Plugin = taskplugin.New("cache", "0.1", exec, taskplugin.WithConfig(validConfig, Config{}), ) )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Action string `json:"action"`
Key string `json:"key"`
Value interface{} `json:"value,omitempty"`
TTL int64 `json:"ttl,omitempty"`
}
Config holds the configuration for a cache action. Action: "set", "get", or "delete" Key: the cache key (required) Value: the value to store (required for "set", ignored otherwise) TTL: time-to-live in seconds (0 means no expiration, only used with "set")
Click to show internal directories.
Click to hide internal directories.