Tweak wording around provider purity
This commit is contained in:
parent
d225a12cab
commit
a0cdbb5675
|
|
@ -38,10 +38,10 @@ corresponding result. However, we have to apply some restrictions in order for
|
||||||
this to be sound:
|
this to be sound:
|
||||||
|
|
||||||
- The key and result must be immutable values.
|
- The key and result must be immutable values.
|
||||||
- The provider function must be a pure function, that is, for the same key it
|
- The provider function must be a pure function in the sense that for the same
|
||||||
must always yield the same result.
|
key it must always yield the same result.
|
||||||
- The only parameters a provider function takes are the key and a reference to
|
- The only parameters a provider function takes are the key and a reference to
|
||||||
the "query context" (which provides access to rest of the "database").
|
the "query context" (which provides access to the rest of the "database").
|
||||||
|
|
||||||
The database is built up lazily by invoking queries. The query providers will
|
The database is built up lazily by invoking queries. The query providers will
|
||||||
invoke other queries, for which the result is either already cached or computed
|
invoke other queries, for which the result is either already cached or computed
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue