dummy-link

RequestsCache

A transparent persistent HTTP cache for Julia

Readme

RequestsCache.jl

Package Evaluator

Build Status

Coverage Status

codecov.io

RequestsCache.jl is a transparent persistent cache using Requests.jl library.

It's written using Julia.

JLD.jl library is used as backend.

Inspired by requests-cache.

Install

Pkg.add("RequestsCache")

Usage

import RequestsCache: Session, CachedSession
import RequestsCache: get

session = Session()
#session = CachedSession()
session = CachedSession(cache_name="cache.jld", backend="jld", expire_after=Base.Dates.Day(1))
#println(session)

response = get(session, "http://httpbin.org/get", query = Dict("title" => "page1"))

println(readall(response))

Projects using RequestsCache.jl

First Commit

04/22/2016

Last Touched

over 2 years ago

Commits

22 commits

Used By: