Put inserts a key-value pair into the database
(key, value []byte)
| 146 | |
| 147 | // Put inserts a key-value pair into the database |
| 148 | func (db *DB) Put(key, value []byte) error { |
| 149 | return db.db.Put(db.ctx, key, value) |
| 150 | } |
| 151 | |
| 152 | // Get retrieves a value by key from the database |
| 153 | func (db *DB) Get(key []byte) ([]byte, error) { |