Example #1
0
        public async Task <GetTasksResponse> GetTasksAsync()
        {
            RedisProvider _redis = new RedisProvider();
            //todo add async
            var _data = _redis.ScanAndGet <ToDoTask>($"{Constants.TASK_PREFIX}*");

            return(new GetTasksResponse
            {
                Payload = _data,
                TotalCount = _data.Count
            });
        }