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.

Author
Neal Richardson [aut, cre]
Date of publication
2016-08-29 20:48:53
Maintainer
Neal Richardson <neal.p.richardson@gmail.com>
License
MIT + file LICENSE
Version
0.1.8
URLs

View on CRAN

Man pages

cached-http-verbs
Cache-aware versions of httr verbs
cacheLogSummary
Summarize cache performance from a log
cache-management
Manage the HTTP cache
dropCache
Invalidate cache
halt
Stop, log, and no call
loadLogfile
Read in a httpcache log file
logMessage
Log a message
requestLogSummary
Summarize HTTP requests from a log
startLog
Enable logging
uncached
Context manager to temporarily turn cache off if it is on

Files in this package

httpcache
httpcache/inst
httpcache/inst/doc
httpcache/inst/doc/httpcache.html
httpcache/inst/doc/httpcache.Rmd
httpcache/inst/doc/httpcache.R
httpcache/tests
httpcache/tests/testthat.R
httpcache/tests/testthat
httpcache/tests/testthat/test-zzz-helper.R
httpcache/tests/testthat/test-cache.R
httpcache/tests/testthat/test-drop-cache.R
httpcache/tests/testthat/helper.R
httpcache/tests/testthat/test-cache-query-params.R
httpcache/tests/testthat/test-logging.R
httpcache/tests/testthat/helper-mocks.R
httpcache/NAMESPACE
httpcache/R
httpcache/R/log.R
httpcache/R/cache.R
httpcache/R/http-verbs.R
httpcache/vignettes
httpcache/vignettes/httpcache.Rmd
httpcache/MD5
httpcache/build
httpcache/build/vignette.rds
httpcache/DESCRIPTION
httpcache/man
httpcache/man/dropCache.Rd
httpcache/man/cacheLogSummary.Rd
httpcache/man/startLog.Rd
httpcache/man/halt.Rd
httpcache/man/logMessage.Rd
httpcache/man/cached-http-verbs.Rd
httpcache/man/requestLogSummary.Rd
httpcache/man/cache-management.Rd
httpcache/man/uncached.Rd
httpcache/man/loadLogfile.Rd
httpcache/.Rinstignore
httpcache/LICENSE