set expiration date for web resource
还没有人认领这个 Issue。
评估
调研方向
Start by examining the bfcadd and bfcquery entry points and the reprex showing expires as NA for a web resource. Trace how resource metadata is stored and returned, then verify that an expiration supplied to bfcadd is represented by bfcquery for URL resources and behaves consistently with existing cache records.
由索引模型根据 Issue 内容生成。
描述
Hi Lori, @lshep
Is it possible to set an expiration date for a URL resource within the bfcadd function or any other function?
I tried this and it doesn't work.
library(BiocFileCache)
#> Loading required package: dbplyr
bfc <- BiocFileCache()
tfile <- "https://bioconductor.org/checkResults/3.15/bioc-LATEST/report.tgz"
treport <- bfcadd(
bfc, rname = tfile, fpath = tfile, expires = Sys.Date() + 2
)
res <- bfcquery(bfc, tfile, exact = TRUE)
res
#> id rid rname
#> 1 9 BFC9 https://bioconductor.org/checkResults/3.15/bioc-LATEST/report.tgz
#> create_time access_time rpath rtype
#> 1 2022-01-11 23:04:43 2022-01-11 23:04:48 179285b1b6faf_report.tgz web
#> fpath
#> 1 https://bioconductor.org/checkResults/3.15/bioc-LATEST/report.tgz
#> last_modified_time etag expires
#> 1 2022-01-10 16:08:46 77b841f-5d53c8d250fe7 NA
Created on 2022-01-11 by the reprex package (v2.0.1.9000)
Thanks!
-Marcel
- 主要语言
- R
- 星标
- 14
- 派生
- 9
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Bioconductor/BiocFileCache 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
Bioconductor/BiocFileCache#76 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 67/100
Bioconductor/BiocFileCache#75 · 1 条评论 ·
-
难度 5/5 一周以上 新手友好度 35/100
Bioconductor/BiocFileCache#72 · 3 条评论 ·
-
难度 3/5 1-2 天 新手友好度 25/100
Bioconductor/BiocFileCache#66 · 16 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
Bioconductor/BiocFileCache#60 · 3 条评论 ·
查看 Bioconductor/BiocFileCache 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
HelenaLC/spatialdataR#295 ·
-
size-time-budget
难度 2/5 1-3 小时 新手友好度 69/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
Openscapes/blogscapes#61 ·
维护者通常 1 天内回复
-
bug posit-ai
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100