Skip to content
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
Open
@fredemmott

Description

@fredemmott
  • 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions