This repository was archived by the owner on Mar 3, 2020. It is now read-only.
This repository was archived by the owner on Mar 3, 2020. It is now read-only.
Rewrite models #572
Open
Description
- refactor to have a unified 'get from memcached or mysql' function on the base that takes both a key (or calls ->getID()) and queryf params
- refactor to have a unified 'update mysql and invalidate memcache' function that takes both a key and (or calls ->getID()) and queryf params
In most cases, there should be no direct usages of the async mysql objects in the models after this.
Bonus points:Use codegen to create the models from a declarative schema - see https://github.com/hhvm/hack-codegen/tree/master/examples/dorm