Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheAdapter ¶
type CacheAdapter struct {
// contains filtered or unexported fields
}
CacheAdapter impl CachePort defined in use case package
func NewCacheAdapter ¶
func NewCacheAdapter(client *redis.Client) *CacheAdapter
func (*CacheAdapter) GetCartCache ¶
GetCartCache 获得购物车缓存
func (*CacheAdapter) IsKeyExist ¶
func (c *CacheAdapter) IsKeyExist(ctx context.Context, key string) bool
IsKeyExist will check if key exist
func (*CacheAdapter) SetCartCache ¶
SetCartCache 将购物车存入redis
Click to show internal directories.
Click to hide internal directories.