Learn R Programming

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

httpcache (version 0.1.4)

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,089

Version

0.1.4

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Neal Richardson

Last Published

March 28th, 2016

Functions in httpcache (0.1.4)

cacheLogSummary

Summarize cache performance from a log
uncached

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

Log a message
cache-management

Manage the HTTP cache
halt

Stop, log, and no call
requestLogSummary

Summarize HTTP requests from a log
loadLogfile

Read in a httpcache log file
dropCache

Invalidate cache
cached-http-verbs

Cache-aware versions of httr verbs
startLog

Enable logging