Documentation ¶ Index ¶ Variables func New(opts ...Option) (agent.Cache, error) type Option func WithDefaultNutsDB(cachePath string) Option func WithNutsDb(db *nutsdb.DB) Option func WithRedis(client *redis.Client) Option Constants ¶ This section is empty. Variables ¶ View Source var ErrNoCache = errors.New("no cache") Functions ¶ func New ¶ func New(opts ...Option) (agent.Cache, error) Types ¶ type Option ¶ type Option func(c *cacheBuild) func WithDefaultNutsDB ¶ func WithDefaultNutsDB(cachePath string) Option func WithNutsDb ¶ func WithNutsDb(db *nutsdb.DB) Option func WithRedis ¶ func WithRedis(client *redis.Client) Option Source Files ¶ View all Source files build.go option.go Directories ¶ Show internal Expand all Path Synopsis nutsdbcache rediscache Click to show internal directories. Click to hide internal directories.