Rename Key -> KeyHasher, KeyFunctor -> MakeKeyHasher
commitb8cbd237a26d7cda7dd38fdd552e2ad0306db674
authorHenri Verroken <hverr@fb.com>
Thu, 16 Sep 2021 11:41:36 +0000 (16 04:41 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 16 Sep 2021 11:43:24 +0000 (16 04:43 -0700)
treef47cafed7bae2a3b9b0ca4946683305429ed1002
parent422a39e52bdd4bb5c838d2405d7c7bda515bc590
Rename Key -> KeyHasher, KeyFunctor -> MakeKeyHasher

Summary:
The `Key` module doesn't really represent a "Key" type, rather it is a hasher for a user-defined type: a `KeyHasher`!

Rename the undescriptive module names `Key` and `KeyFunctor` into `KeyHasher` and `MakeKeyHasher`. Also make the type of the key abstract.

In the next diff we will embed the hashing-prefix into this module.

Reviewed By: ljw1004

Differential Revision: D30887416

fbshipit-source-id: 7e71cdf97955f4f3d818f548a423be64b58d04eb
hphp/hack/src/heap/sharedMem.ml
hphp/hack/src/heap/sharedMem.mli