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