MCPcopy Create free account
hub / github.com/GoSimplicity/LinkMe / Exist

Method Exist

internal/repository/cache/sms.go:79–82  ·  view source on GitHub ↗

Exist 检查key是否存在

(ctx context.Context, number string)

Source from the content-addressed store, hash-verified

77
78// Exist 检查key是否存在
79func (s *smsCache) Exist(ctx context.Context, number string) bool {
80 key := getLockedKey(number)
81 return s.client.Exists(ctx, key).Err() == nil
82}
83
84// Count 获取当天发送短信的次数
85func (s *smsCache) Count(ctx context.Context, number string) int {

Callers

nothing calls this directly

Calls 1

getLockedKeyFunction · 0.85

Tested by

no test coverage detected