Example #1
0
        public async Task <IActionResult> GetValuesForBatch(string hashKey)
        {
            var batchEntries = await m_RedisManager.GetValuesForBatchKey(hashKey);

            var dtoEntries = batchEntries
                             .Select(entry => new KeyValueModel()
            {
                Key   = entry.Item1,
                Value = entry.Item2
            })
                             .ToList();

            return(Ok(dtoEntries));
        }