feature/ip优化

This commit is contained in:
吕翠丽
2025-06-17 16:57:42 +08:00
parent 6d3891390f
commit 169996cc8a
3 changed files with 10 additions and 9 deletions

View File

@@ -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)
}