(client redis.Cmdable)
| 25 | } |
| 26 | |
| 27 | func NewRelationCache(client redis.Cmdable) RelationCache { |
| 28 | return &relationCache{client: client} |
| 29 | } |
| 30 | |
| 31 | func (c *relationCache) GetCache(ctx context.Context, key string) ([]domain.Relation, error) { |
| 32 | // 从Redis获取数据 |