Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DB: add REDIS option in addition to in-memory DB #388

Open
glimchb opened this issue May 26, 2023 · 0 comments
Open

DB: add REDIS option in addition to in-memory DB #388

glimchb opened this issue May 26, 2023 · 0 comments

Comments

@glimchb
Copy link
Member

glimchb commented May 26, 2023

example:

	// idempotent API when called with same key, should return same object
	subsys, ok := s.Nvme.Subsystems[in.NvmeSubsystem.Spec.Name]
	if ok {
		log.Printf("Already existing NvmeSubsystem with id %v", in.NvmeSubsystem.Spec.Name)
		return subsys, nil
	}

instead of s.Nvme.Subsystems map, we can use actual database like redis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant