Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheRepository ¶
type CacheRepository interface { Set(ctx context.Context, key string, value interface{}, exp time.Duration) error Get(ctx context.Context, key string) (string, error) }
CacheRepository represent the redis repositories
func NewCacheRepository ¶
func NewCacheRepository(client *redis.Client) CacheRepository
NewCacheRepository will create an object that represent the CacheRepository interface
Click to show internal directories.
Click to hide internal directories.