Learn R Programming

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

httpcache (version 0.1.2)

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.2

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Neal Richardson

Last Published

February 23rd, 2016

Functions in httpcache (0.1.2)

uncached

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

Summarize cache performance from a log
cached-http-verbs

Cache-aware versions of httr verbs
cache-management

Manage the HTTP cache
dropCache

Invalidate cache
loadLogfile

Read in a httpcache log file
halt

Stop, log, and no call
requestLogSummary

Summarize HTTP requests from a log
logMessage

Log a message
startLog

Enable logging