HomePhabricator

[cuckoocache] Use matchKey instead of the == operator.

Description

[cuckoocache] Use matchKey instead of the == operator.

Summary:
We plan to allow for Element to be a key/value pair in order to store informations in the cache. This means simple equality cannot be used anymore.

A wrapper type is provided to add the matchKey feature to any type conveniently.

Test Plan:

make check

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D4641

Details

Provenance
deadalnixAuthored on Dec 4 2019, 22:12
deadalnixPushed on Dec 5 2019, 13:13
Reviewer
Restricted Project
Differential Revision
D4641: [cuckoocache] Use matchKey instead of the == operator.
Parents
rSTAGINGa8257058a391: refactoring: add a method for determining if a block is pruned or not
Branches
Unknown
Tags
Unknown
References
tag: phabricator/base/14639, tag: phabricator/base/14638