Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ICacheRepo ¶
type ICacheRepo interface { WriteCache(key string, data interface{}, ttl time.Duration) (err error) WriteCacheIfEmpty(key string, data interface{}, ttl time.Duration) (err error) }
ICacheRepo interface for cache repo
func NewCacheRepository ¶
func NewCacheRepository(opt Option) ICacheRepo
NewCacheRepository initiate cache repo
type Repository ¶
type Repository struct { // User IUserRepository Cache ICacheRepo }
Repository all repo object injected here
Click to show internal directories.
Click to hide internal directories.