[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#53818] [PATCH v2 4/7] import: json: Make 'json-fetch' take '#:cache
From: |
Maxime Devos |
Subject: |
[bug#53818] [PATCH v2 4/7] import: json: Make 'json-fetch' take '#:cached?' argument. |
Date: |
Mon, 07 Feb 2022 10:44:44 +0100 |
User-agent: |
Evolution 3.38.3-1 |
Xinglu Chen schreef op ma 07-02-2022 om 10:07 [+0100]:
> + (let* ((port ((if cached?
> + http-fetch/cached
> + http-fetch)
Personally, instead of introdicing a cached? argument,
I would introduce a 'http-fetch' argument defaulting to 'http-fetch',
such that users of 'json-fetch' can set all the options of
'http-fetch/cached' (ttl, cache-miss ...).
(json-fetch #:http-fetch
(lambda (uri . rest)
(apply http-fetch/cached uri #:ttl foo #:cache-miss bar
rest)))
Greetings,
Maxime.
signature.asc
Description: This is a digitally signed message part
- [bug#53818] [PATCH v2 5/7] import: Add 'repology' updater., (continued)
- [bug#53818] [PATCH v2 5/7] import: Add 'repology' updater., Maxime Devos, 2022/02/07
- [bug#53818] [PATCH v2 5/7] import: Add 'repology' updater., Maxime Devos, 2022/02/07
- [bug#53818] [PATCH v2 5/7] import: Add 'repology' updater., Xinglu Chen, 2022/02/08
- [bug#53818] [PATCH v2 5/7] import: Add 'repology' updater., Maxime Devos, 2022/02/08
- [bug#53818] [PATCH v2 5/7] import: Add 'repology' updater., Xinglu Chen, 2022/02/09
[bug#53818] [PATCH v2 3/7] http-client: 'http-fetch/cached' accepts a string or a <uri>., Xinglu Chen, 2022/02/07
[bug#53818] [PATCH v2 2/7] http-client: Make 'http-fetch/cached' take '#:headers' argument., Xinglu Chen, 2022/02/07
[bug#53818] [PATCH v2 6/7] gnu: xorg-server-xwayland: Set 'repology-name' property., Xinglu Chen, 2022/02/07
[bug#53818] [PATCH v2 7/7] gnu: xorg-server-xwayland: Prepare for cross-compilation., Xinglu Chen, 2022/02/07
[bug#53818] [PATCH v2 4/7] import: json: Make 'json-fetch' take '#:cached?' argument., Xinglu Chen, 2022/02/07
- [bug#53818] [PATCH v2 4/7] import: json: Make 'json-fetch' take '#:cached?' argument.,
Maxime Devos <=
[bug#53818] [PATCH v3 0/7] Add Repology updater, Xinglu Chen, 2022/02/09
- [bug#53818] [PATCH v3 2/7] http-client: Make 'http-fetch/cached' take '#:headers' argument., Xinglu Chen, 2022/02/09
- [bug#53818] [PATCH v3 3/7] http-client: 'http-fetch/cached' accepts a string or a <uri>., Xinglu Chen, 2022/02/09
- [bug#53818] [PATCH v3 1/7] upstream: Sort list of updaters., Xinglu Chen, 2022/02/09
- [bug#53818] [PATCH v3 4/7] import: json: Make 'json-fetch' take '#:http-fetch' argument., Xinglu Chen, 2022/02/09
- [bug#53818] [PATCH v3 7/7] gnu: xorg-server-xwayland: Prepare for cross-compilation., Xinglu Chen, 2022/02/09
- [bug#53818] [PATCH v3 6/7] gnu: xorg-server-xwayland: Set 'repology-name' property., Xinglu Chen, 2022/02/09
- [bug#53818] [PATCH v3 5/7] import: Add 'repology' updater., Xinglu Chen, 2022/02/09
[bug#53818] [PATCH 0/3] Add Repology updater, Ludovic Courtès, 2022/02/08