Documentation ¶
Index ¶
- type CachedManager
- type Manager
- func (m *Manager) Add(ctx context.Context, projectID int64, meta map[string]string) error
- func (m *Manager) Delete(ctx context.Context, projectID int64, meta ...string) error
- func (m *Manager) Get(ctx context.Context, projectID int64, meta ...string) (map[string]string, error)
- func (m *Manager) List(ctx context.Context, name string, value string) ([]*models.ProjectMetadata, error)
- func (m *Manager) Update(ctx context.Context, projectID int64, meta map[string]string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachedManager ¶
type CachedManager interface { // Manager is the raw resource Manager. metadata.Manager // Manager is the common interface for resource cache. cached.Manager }
CachedManager is the interface combines raw resource Manager and cached Manager for better extension.
type Manager ¶
type Manager struct { *cached.BaseManager // contains filtered or unexported fields }
Manager is the cached manager implemented by redis.
func NewManager ¶
NewManager returns the redis cache manager.
Click to show internal directories.
Click to hide internal directories.