github.com/charlienet/go-mixed@v0.3.7/cache/mem.go (about)

     1  package cache
     2  
     3  import "time"
     4  
     5  type MemCache interface {
     6  	Get(key string) ([]byte, error)
     7  	Set(key string, entry []byte, expire time.Duration) error
     8  	Delete(key ...string) error
     9  }