Learn R Programming

⚠️There's a newer version (1.2.0) of this package.Take me there.

httpcache (version 1.0.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,418

Version

1.0.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Neal Richardson

Last Published

January 3rd, 2017

Functions in httpcache (1.0.0)

cached-http-verbs

Cache-aware versions of httr verbs
halt

Stop, log, and no call
loadLogfile

Read in a httpcache log file
cachedPOST

Cache the response of a POST
requestLogSummary

Summarize HTTP requests from a log
logMessage

Log a message
saveCache

Save and load cache state
cachedDownload

Cache the result of a file download
startLog

Enable logging
dropCache

Invalidate cache
uncached

Context manager to temporarily turn cache off if it is on
buildCacheKey

Construct a unique cache key for a request
cache-api

HTTP Cache API
cache-management

Manage the HTTP cache
cacheLogSummary

Summarize cache performance from a log