Skip to content

fengshux/memo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Memo is a memory cache for golang.

Installation

    go get github.com/fengshux/memo

Usage

    // init
    m := memo.Default()
    // set
    m.Set("key",val)
    // get
    res := m.Get("key")
    // setex
    m.SetEx("key", 5*time.Second, val)
    //delete
    m.Del("key")

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages