public IEnumerable <WeatherForecast> Get()
        {
            var db  = _fact.GetDatabase();
            var rng = new Random();

            return(Enumerable.Range(1, 5).Select(index => new WeatherForecast
            {
                Date = DateTime.Now.AddDays(index),
                TemperatureC = rng.Next(-20, 55),
                Summary = Summaries[rng.Next(Summaries.Length)],
                Sandy = db.StringGet("CacheTest")
            })
                   .ToArray());
        }
 public RedisCacheFramework(IRedisConnectionFactory redisConnectionFactory)
 {
     _redisDatabase = redisConnectionFactory.GetDatabase();
 }
        public void Post([FromBody] string value)
        {
            var db = _fact.GetDatabase();

            db.StringSet("CacheTest", value);
        }