cache
chenzhihui 2 years ago
parent 315d3048bf
commit f9825cb900
  1. 2
      cache/cache.go

2
cache/cache.go vendored

@ -8,6 +8,6 @@ import (
// Cache is a generic key value cache interface.
type Cache interface {
Get(ctx context.Context, key string) (interface{}, error)
Put(ctx context.Context, key string, value interface{}, expired time.Duration) error
Put(ctx context.Context, key string, value interface{}, ttl time.Duration) error
Delete(ctx context.Context, key string) error
}

Loading…
Cancel
Save