We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
From slack conversation: https://clojurians.slack.com/archives/C87NB2CFN/p1628795228076000
the plan-cache spec should allow for pcache/CacheStore protocol
pcache/CacheStore
(ns pathom3.experiment (:require [com.wsscode.pathom3.connect.operation :as pco] [com.wsscode.pathom3.connect.indexes :as pci] [com.wsscode.pathom3.interface.eql :as p.eql] [com.wsscode.pathom3.connect.built-in.resolvers :as pbir] [com.wsscode.pathom3.connect.planner :as pcp] [clojure.core.cache.wrapped :as cc] [com.wsscode.pathom3.cache :as pcache])) (defrecord CoreCacheStore [cache-atom] pcache/CacheStore (-cache-lookup-or-miss [_ cache-key f] (cc/lookup-or-miss cache-atom cache-key (fn [_] (f)))) (-cache-find [_ cache-key] (find @cache-atom cache-key))) (pco/defresolver a [] {::pco/output [:a]} {:a "hello world"}) (defn new-env [] (-> (pci/register [a]) (pcp/with-plan-cache (->CoreCacheStore (cc/lu-cache-factory {} :threshold 1024))))) (comment (p.eql/process (new-env) {} [:a]))
The text was updated successfully, but these errors were encountered:
Fixed by b7b3294
Sorry, something went wrong.
No branches or pull requests
From slack conversation: https://clojurians.slack.com/archives/C87NB2CFN/p1628795228076000
the plan-cache spec should allow for
pcache/CacheStore
protocolThe text was updated successfully, but these errors were encountered: