Pretty self-explanatory. I was just wondering if there was a premanufactured way to cache queries to Redis/Memcached and get identical (G)ORM structs back, or fetch from SQL and optionally cache for the next attempt at the same data.
评论:
cenuij:
afaik gorm has pre-query callbacks, you could implement struct encoding and caching there...
