cloudwan / gohan

Gohan is an API Gateway Server written by Go that makes it easy for developers to create and maintain REST-style API
http://www.slideshare.net/natiueno/gohan-61170476
Other
109 stars 44 forks source link

Add cached sql transactions #632

Closed JDCodi closed 6 years ago

JDCodi commented 6 years ago

Add wrapper for transaction.Transaction that caches select requests results and returns results from cache instead of making another call to the db. All operations that could influence requests results clear the cache, so we make another call to the db when needed.