Ejemplo n.º 1
0
        public async Task Create <T>(string table, T model)
        {
            var response = await _redisContext.Get <ICollection <T> >(table);

            if (response == null)
            {
                response = Activator.CreateInstance <List <T> >();
            }
            response.Add(model);
            await _redisContext.Add(table, response);
        }