Documentation
¶
Index ¶
- Variables
- func NewRepository(store cache.Store) cache.Repository
- type Config
- type Manager
- type Repository
- func (r *Repository) Add(ctx context.Context, key string, value interface{}, ttl time.Duration) (bool, error)
- func (r *Repository) Delete(ctx context.Context, key string) error
- func (r *Repository) Missing(ctx context.Context, key string) bool
- func (r *Repository) Remember(ctx context.Context, key string, dest interface{}, value func() interface{}, ...) error
- func (r *Repository) Set(ctx context.Context, key string, value interface{}, ttl time.Duration) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDestMustBePointer = fmt.Errorf("cache: dest must be a pointer") ErrDestMustNotBeNil = fmt.Errorf("cache: dest must not be nil") )
Functions ¶
func NewRepository ¶ added in v1.0.5
func NewRepository(store cache.Store) cache.Repository
Types ¶
type Manager ¶ added in v1.0.5
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶ added in v1.0.5
Click to show internal directories.
Click to hide internal directories.