package
0.0.0-20240415023245-eac37da78362
Repository: https://github.com/ahmed-i-abdullah/p2p-code-collaboration.git
Documentation: pkg.go.dev

# Functions

Close closes the BadgerDB database connection.
Get retrieves the value associated with the given key from the database It returns the value and any error encountered during the retrieval process.
Init initializes the BadgerDB database connection It takes an integer id as input for the badgerDB folder path and initializes the database connection It returns an error if there's any issue initializing the database connection.
Put saves a key-value pair in the database with a Time-To-Live (TTL) of 10 minutes It returns an error if there's any issue during the write operation.

# Variables

DBCon represents the connection to the BadgerDB database.