Data Storage:
🔌 Storage Interface:
type Storage interface {
// Set stores a value and returns user ID and an error if any issue occurs during the operation
Set(value string) (int64, error)
// Get retrieves the value for a given user ID and returns an error if any issue occurs during the operation
Get(key int64) (*common.User, error)
// Close closes storage instance
Close() error
}🧪 Mock Implementations for Testing
Last updated