cache.go 217 B

1234567891011
  1. package cache
  2. import "time"
  3. //Cache interface
  4. type Cache interface {
  5. Get(key string) interface{}
  6. Set(key string, val interface{}, timeout time.Duration) error
  7. IsExist(key string) bool
  8. Delete(key string) error
  9. }