title: Lua and caching data
body: <p>I am really new to Lua and I have been working on side projects but cannot seem to figure out ways to cache data in Lua.</p>
  
  <p>What I am trying to do is:</p>
  
  <p>I want to cache data that I fetch from my database so I can get those variables instantly without going through calculation(fetching) again. </p>
  
  <p>I found resources on resty-memcached and redis-lua scripting but they seem not related to what I want to do. </p>
  
  <p>It would be very nice if someone could help me! Thaks!</p>