Skip to content
/ memo Public

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

License

Notifications You must be signed in to change notification settings

ganglio/memo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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())
}

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages