diff options
author | Ludovic Courtès <ludo@gnu.org> | 2021-05-28 17:22:03 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2021-06-08 09:25:49 +0200 |
commit | d9d7b9ec41e280ff18b14dba410f93fd4653e84b (patch) | |
tree | f51b4651b5a2f05bc78a0f43f113c3e5b5c3bdf7 /configure.ac | |
parent | dfed76e4ab38b87c5038c740224ddf8d2f627346 (diff) |
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 'configure.ac')
0 files changed, 0 insertions, 0 deletions