Documentation
¶
Index ¶
- Constants
- type SharedCache
- func (that *SharedCache) Att() *macro.Att
- func (that *SharedCache) Decr(ctx context.Context, key string, value int64) (int64, error)
- func (that *SharedCache) Get(ctx context.Context, key string) (*types.CacheEntity, error)
- func (that *SharedCache) HDel(ctx context.Context, key string, name string) error
- func (that *SharedCache) HGet(ctx context.Context, key string, name string) (*types.CacheEntity, error)
- func (that *SharedCache) HKeys(ctx context.Context, key string) ([]string, error)
- func (that *SharedCache) HSet(ctx context.Context, key string, cell *types.CacheEntity) error
- func (that *SharedCache) Incr(ctx context.Context, key string, value int64) (int64, error)
- func (that *SharedCache) Keys(ctx context.Context, pattern string) ([]string, error)
- func (that *SharedCache) Put(ctx context.Context, cell *types.CacheEntity) error
- func (that *SharedCache) Remove(ctx context.Context, key string) error
- func (that *SharedCache) Store(ctx context.Context, name string) *groupcache.Group
- type UnSharedCache
- func (that *UnSharedCache) Att() *macro.Att
- func (that *UnSharedCache) Decr(ctx context.Context, key string, value int64) (int64, error)
- func (that *UnSharedCache) Get(ctx context.Context, key string) (*types.CacheEntity, error)
- func (that *UnSharedCache) HDel(ctx context.Context, key string, name string) error
- func (that *UnSharedCache) HGet(ctx context.Context, key string, name string) (*types.CacheEntity, error)
- func (that *UnSharedCache) HKeys(ctx context.Context, key string) ([]string, error)
- func (that *UnSharedCache) HSet(ctx context.Context, key string, cell *types.CacheEntity) error
- func (that *UnSharedCache) Incr(ctx context.Context, key string, value int64) (int64, error)
- func (that *UnSharedCache) Keys(ctx context.Context, pattern string) ([]string, error)
- func (that *UnSharedCache) Put(ctx context.Context, cell *types.CacheEntity) error
- func (that *UnSharedCache) Remove(ctx context.Context, key string) error
- func (that *UnSharedCache) Store(ctx context.Context) *cache.Cache
Constants ¶
View Source
const Cluster = "cluster"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SharedCache ¶
type SharedCache struct {
// contains filtered or unexported fields
}
func (*SharedCache) Att ¶
func (that *SharedCache) Att() *macro.Att
func (*SharedCache) Get ¶
func (that *SharedCache) Get(ctx context.Context, key string) (*types.CacheEntity, error)
func (*SharedCache) HGet ¶
func (that *SharedCache) HGet(ctx context.Context, key string, name string) (*types.CacheEntity, error)
func (*SharedCache) HSet ¶
func (that *SharedCache) HSet(ctx context.Context, key string, cell *types.CacheEntity) error
func (*SharedCache) Put ¶
func (that *SharedCache) Put(ctx context.Context, cell *types.CacheEntity) error
func (*SharedCache) Store ¶
func (that *SharedCache) Store(ctx context.Context, name string) *groupcache.Group
type UnSharedCache ¶
type UnSharedCache struct {
// contains filtered or unexported fields
}
func (*UnSharedCache) Att ¶
func (that *UnSharedCache) Att() *macro.Att
func (*UnSharedCache) Get ¶
func (that *UnSharedCache) Get(ctx context.Context, key string) (*types.CacheEntity, error)
func (*UnSharedCache) HGet ¶
func (that *UnSharedCache) HGet(ctx context.Context, key string, name string) (*types.CacheEntity, error)
func (*UnSharedCache) HSet ¶
func (that *UnSharedCache) HSet(ctx context.Context, key string, cell *types.CacheEntity) error
func (*UnSharedCache) Put ¶
func (that *UnSharedCache) Put(ctx context.Context, cell *types.CacheEntity) error
Click to show internal directories.
Click to hide internal directories.