Skip to content
This repository has been archived by the owner on Jan 14, 2022. It is now read-only.

Associative time to live (TTL) cache for Julia

License

Notifications You must be signed in to change notification settings

christopher-dG/TimeToLive.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

Associative time to live (TTL) cache for Julia

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages