Package: httpcache 1.2.0
httpcache: Query Cache for HTTP Clients
In order to improve performance for HTTP API clients, 'httpcache' provides simple tools for caching and invalidating cache. It includes the HTTP verb functions GET, PUT, PATCH, POST, and DELETE, which are drop-in replacements for those in the 'httr' package. These functions are cache-aware and provide default settings for cache invalidation suitable for RESTful APIs; the package also enables custom cache-management strategies. Finally, 'httpcache' includes a basic logging framework to facilitate the measurement of HTTP request time and cache performance.
Authors:
httpcache_1.2.0.tar.gz
httpcache_1.2.0.zip(r-4.5)httpcache_1.2.0.zip(r-4.4)httpcache_1.2.0.zip(r-4.3)
httpcache_1.2.0.tgz(r-4.5-any)httpcache_1.2.0.tgz(r-4.4-any)httpcache_1.2.0.tgz(r-4.3-any)
httpcache_1.2.0.tar.gz(r-4.5-noble)httpcache_1.2.0.tar.gz(r-4.4-noble)
httpcache_1.2.0.tgz(r-4.4-emscripten)httpcache_1.2.0.tgz(r-4.3-emscripten)
httpcache.pdf |httpcache.html✨
httpcache/json (API)
# Install 'httpcache' in R: |
install.packages('httpcache', repos = c('https://nealrichardson.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/nealrichardson/httpcache/issues
Pkgdown site:https://enpiar.com
Last updated 2 years agofrom:e42d00fcc2. Checks:1 OK, 7 NOTE. Indexed: yes.
Target | Result | Latest binary |
---|---|---|
Doc / Vignettes | OK | Feb 19 2025 |
R-4.5-win | NOTE | Feb 19 2025 |
R-4.5-mac | NOTE | Feb 19 2025 |
R-4.5-linux | NOTE | Feb 19 2025 |
R-4.4-win | NOTE | Feb 19 2025 |
R-4.4-mac | NOTE | Feb 19 2025 |
R-4.3-win | NOTE | Feb 19 2025 |
R-4.3-mac | NOTE | Feb 19 2025 |
Exports:buildCacheKeycachedPOSTcacheLogSummarycacheOffcacheOnclearCacheDELETEdropCachedropOnlydropPatternGETgetCachehalthitCacheloadCacheloadLogfilelogMessagePATCHPOSTPUTrequestLogSummarysaveCachesetCachestartLoguncached
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Construct a unique cache key for a request | buildCacheKey |
HTTP Cache API | cache-api getCache hitCache setCache |
Manage the HTTP cache | cache-management cacheOff cacheOn clearCache |
Cache-aware versions of httr verbs | cached-http-verbs DELETE GET PATCH POST PUT |
Cache the response of a POST | cachedPOST |
Summarize cache performance from a log | cacheLogSummary |
Invalidate cache | dropCache dropOnly dropPattern |
Stop, log, and no call | halt |
Read in a httpcache log file | loadLogfile |
Log a message | logMessage |
Summarize HTTP requests from a log | requestLogSummary |
Save and load cache state | loadCache saveCache |
Enable logging | startLog |
Context manager to temporarily turn cache off if it is on | uncached |