feature/ip优化
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
|
||||
// Cache 定义缓存接口,遵循接口隔离原则
|
||||
type ICacheAdapter interface {
|
||||
Set(ctx context.Context, ip string, info ApiResult, ttl time.Duration) error
|
||||
Set(ctx context.Context, ip string, info string, ttl time.Duration) error
|
||||
Get(ctx context.Context, ip string) (*ApiResult, error)
|
||||
Exists(ctx context.Context, ip string) (bool, error)
|
||||
}
|
||||
|
Reference in New Issue
Block a user