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

Method SetNX

internal/repository/sms.go:26–26  ·  view source on GitHub ↗
(ctx context.Context, number string, value interface{}, expiration time.Duration)

Source from the content-addressed store, hash-verified

24 CheckCode(ctx context.Context, smsID, number, vCode string) (bool, error)
25 AddUserOperationLog(ctx context.Context, log dao.VCodeSmsLog) error
26 SetNX(ctx context.Context, number string, value interface{}, expiration time.Duration) (*redis.BoolCmd, error)
27 StoreVCode(ctx context.Context, smsID, number string, vCode string) error
28 Exist(ctx context.Context, number string) bool
29 Count(ctx context.Context, number string) int

Callers 2

SetNXMethod · 0.65
SendCodeMethod · 0.65

Implementers 1

smsRepositoryinternal/repository/sms.go

Calls

no outgoing calls

Tested by

no test coverage detected