Documentation ¶
Overview ¶
Code generated by cache-gen. DO NOT EDIT.
Index ¶
- type Manager
- func (mgr *Manager) Find(key int64) *cacheManager
- func (mgr *Manager) FindOrCreate(key int64) *cacheManager
- func (mgr *Manager) Get(ctx context.Context, key int64) (*mytypes.UserProfile, err)
- func (mgr *Manager) Purge(key int64)
- func (mgr *Manager) PurgeAll()
- func (mgr *Manager) Set(key int64, value *mytypes.UserProfile)
- func (mgr *Manager) Snapshot() map[int64]*mytypes.UserProfile
- type UpdaterManager
- type UpdaterManagerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(updater UpdaterManager) *Manager
func NewManagerFunc ¶
func NewManagerFunc(updateFunc UpdaterManagerFunc) *Manager
func (*Manager) FindOrCreate ¶
type UpdaterManager ¶
type UpdaterManagerFunc ¶
func (UpdaterManagerFunc) Update ¶
func (fn UpdaterManagerFunc) Update(ctx context.Context, key int64) (*mytypes.UserProfile, error)
Click to show internal directories.
Click to hide internal directories.