MCPcopy Index your code
hub / github.com/devaccuracy/ledgerforge / getAPIKeyCacheKey

Function getAPIKeyCacheKey

database/api_key.go:47–49  ·  view source on GitHub ↗

getAPIKeyCacheKey generates a cache key for an API key lookup Uses the hashed key to ensure consistent cache keys

(hashedKey string)

Source from the content-addressed store, hash-verified

45// getAPIKeyCacheKey generates a cache key for an API key lookup
46// Uses the hashed key to ensure consistent cache keys
47func getAPIKeyCacheKey(hashedKey string) string {
48 return fmt.Sprintf("api_key:hash:%s", hashedKey)
49}
50
51// CreateAPIKey creates a new API key with the specified parameters and stores it in the database.
52// The key is hashed using bcrypt before storage for security. The plain text key is returned ONLY during creation

Callers 2

GetAPIKeyMethod · 0.85
RevokeAPIKeyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected