TimeToLive.jl

Associative time to live (TTL) cache for Julia
Author christopher-dG
Popularity
1 Star
Updated Last
1 Year Ago
Started In
October 2018

TimeToLive Build Status

An associative TTL cache.

julia> using Dates, TimeToLive

julia> ttl = TTL{Int, String}(Second(1))
TTL{Int64,String,Second} with 0 entries

julia> ttl[0] = "foo"
"foo"

julia> ttl[0]
"foo"

julia> sleep(2)

julia> get(ttl, 0, "bar")
"bar"

Required Packages

No packages found.