Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 770 Bytes

readme.md

File metadata and controls

22 lines (17 loc) · 770 Bytes

Memo

CircleCI codecov GoDoc Go Report Card

Teeny-weeny cached variable library with auto refresh and anti stampede.

Usage

v := 0
counter := memo.Memo(func() interface{} {
  v = v + 1
  return v
}, time.Second)

for {
  fmt.Printf("Counter %s", counter())
}