mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 17:31:56 +03:00
e17e47ef8c
There are two implementations of a Cache, namely a bounded and an unbounded variant. This can be elegantly captured in a type class. In addition to reducing the amount of error-prone code in the definition of the cache, this version reduces the amount of error-prone code in usage sites of the cache, as it makes the cache into an abstract object, so that a calling site cannot distinguish between cache types. Any decision about what should be cached should be made through the interface of a cache, rather than at the callsite, and this is captured by this variant. |
||
---|---|---|
.. | ||
packaging | ||
src-bench-cache | ||
src-exec | ||
src-lib | ||
src-rsr | ||
src-test | ||
tests-py | ||
.dockerignore | ||
.gitignore | ||
.stylish-haskell.yaml | ||
cabal.project | ||
cabal.project.ci | ||
cabal.project.dev | ||
cabal.project.dev-sh | ||
cabal.project.dev-sh.freeze | ||
cabal.project.dev-sh.local | ||
cabal.project.freeze | ||
CONTRIBUTING.md | ||
graphql-engine.cabal | ||
Makefile | ||
Setup.hs | ||
STYLE.md |