title: how to save data from redis to a file in disk and read back to redis?
body: <p>i can write to redis and read from it in a program</p>
  
  <p>however, after close server, i guess data are deleted from memory</p>
  
  <p>how to make the data in redis saved to disk and next time i open redis so that</p>
  
  <p>it can open the data, let console program to read it?</p>
  
  <p>if my computer restart itself due to power off suddenly, can redis recover the status and </p>
  
  <p>let program can read previous data?</p>
  
  <pre><code>static void Main(string[] args)
          {
              RedisClient redisClient = new RedisClient("localhost");
              redisClient.FlushAll();
  
              var redisTodos = redisClient.As&lt;Todo&gt;();;
              Todo todo1 = new Todo();
              todo1.Content = "wind";
              todo1.Id = redisTodos.GetNextSequence();
              todo1.Order = 1;
              todo1.Done = false;
  
              redisTodos.Store(todo1);
              var savedTodo = redisTodos.GetById(todo1.Id);
              var allTodos = redisTodos.GetAll();
              foreach(var i in allTodos)
              {
                  Console.WriteLine(i.Content);
              }
              Console.ReadKey();
          }
  </code></pre>