summaryrefslogtreecommitdiff
path: root/guix/grafts.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2021-05-28 17:22:03 +0200
committerLudovic Courtès <ludo@gnu.org>2021-06-08 09:25:49 +0200
commitd9d7b9ec41e280ff18b14dba410f93fd4653e84b (patch)
treef51b4651b5a2f05bc78a0f43f113c3e5b5c3bdf7 /guix/grafts.scm
parentdfed76e4ab38b87c5038c740224ddf8d2f627346 (diff)
downloadguix-patches-d9d7b9ec41e280ff18b14dba410f93fd4653e84b.tar
guix-patches-d9d7b9ec41e280ff18b14dba410f93fd4653e84b.tar.gz
store: Support dynamic allocation of per-connection caches.
* guix/store.scm (<store-connection>)[object-cache]: Remove. [caches]: New field. (open-connection, port->connection): Adjust '%make-store-connection' calls accordingly. (%store-connection-caches, %object-cache-id): New variables. (allocate-store-connection-cache, vector-set) (store-connection-cache, set-store-connection-cache) (set-store-connection-caches!, set-store-connection-cache!): New procedures. (cache-object-mapping): Add #:cache parameter. (set-store-connection-object-cache!): Remove. (lookup-cached-object): Use 'store-connection-cache'. (run-with-store): Use 'store-connection-caches' and 'set-store-connection-caches!'.
Diffstat (limited to 'guix/grafts.scm')
0 files changed, 0 insertions, 0 deletions