Skip to content

DecisiveAI/mdai-data-core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chores codecov

mdai-data-core

Overview

mdai-data-core is a Go library designed for efficient and structured interaction with Valkey storage.

It simplifies:

  • Variable Access: Conveniently encapsulates and manages variables stored in Valkey.
  • Audit Management: Provides robust auditing capabilities for operations performed on Valkey variables and other critical MDAI operations.
  • Handlers Integration: Offers streamlined handlers interface for interacting directly with Valkey-stored data.

Installation

go get github.com/decisiveai/mdai-data-core

Usage

Basic usage example:

package main

import (
	"context"

	datacore "github.com/decisiveai/mdai-data-core/variables"
)

func main() {
	// initialize your valkeyClient (valkey-go), provide logger
	client := datacore .NewValkeyAdapter(valKeyClient, zapLogger)
	value, found, err := client.GetString(context.TODO(), "your_variable_name", "hub_name")
	// proceed with error hadling and the rest of your logic
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 5