Learn R Programming

httpcache (version 1.2.0)

Query Cache for HTTP Clients

Description

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.

Copy Link

Version

Install

install.packages('httpcache')

Monthly Downloads

1,168

Version

1.2.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

January 10th, 2021

Functions in httpcache (1.2.0)

startLog

Enable logging
buildCacheKey

Construct a unique cache key for a request
uncached

Context manager to temporarily turn cache off if it is on
cache-api

HTTP Cache API
saveCache

Save and load cache state
requestLogSummary

Summarize HTTP requests from a log
cache-management

Manage the HTTP cache
cacheLogSummary

Summarize cache performance from a log
halt

Stop, log, and no call
dropCache

Invalidate cache
cachedPOST

Cache the response of a POST
cached-http-verbs

Cache-aware versions of httr verbs
loadLogfile

Read in a httpcache log file
logMessage

Log a message