Versions in this module Expand all Collapse all v1 v1.1.0 Dec 9, 2020 Changes in this version + func GetRediClient(config map[string]string) (*redis.Client, error) + type IRedisRepository interface + Append func(key string, value string) (int64, error) + Get func(key string, result interface{}) error + GetMany func(keys []string, result interface{}) error + Remove func(key ...string) (int64, error) + Set func(key string, entity interface{}, expiration time.Duration) (int64, error) + SetMany func(entityMap map[string]interface{}, expiration time.Duration) (int64, error) + type RedisContent struct + Client *redis.Client + func DataBaseMapping(client *redis.Client) *RedisContent + func (redi *RedisContent) GetRedisRepository(entity interface{}) IRedisRepository + type ReidsRepository struct + Client *redis.Client + EntityNmae string + func (redi *ReidsRepository) Append(key string, value string) (int64, error) + func (redi *ReidsRepository) Remove(keys ...string) (int64, error) + func (redi *ReidsRepository) Set(key string, entity interface{}, expiration time.Duration) (int64, error) + func (redi *ReidsRepository) SetMany(entityMap map[string]interface{}, expiration time.Duration) (int64, error) + func (reid *ReidsRepository) Get(key string, result interface{}) error + func (reid *ReidsRepository) GetMany(keys []string, result interface{}) error