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

Method StoreVCode

internal/repository/cache/sms.go:15–15  ·  view source on GitHub ↗
(ctx context.Context, smsID, number string, vCode string)

Source from the content-addressed store, hash-verified

13type SMSCache interface {
14 GetVCode(ctx context.Context, smsID, number string) (string, error)
15 StoreVCode(ctx context.Context, smsID, number string, vCode string) error
16 SetNX(ctx context.Context, number string, value interface{}, expiration time.Duration) (*redis.BoolCmd, error)
17 Exist(ctx context.Context, number string) bool
18 Count(ctx context.Context, number string) int

Callers

nothing calls this directly

Implementers 1

smsCacheinternal/repository/cache/sms.go

Calls

no outgoing calls

Tested by

no test coverage detected