gobstore/set.go
2025-01-12 02:51:51 -07:00

12 lines
224 B
Go

package gobstore
// Set adds or updates a value.
func (j *GobStore[T]) Set(key string, value T) {
j.Lock()
defer j.Unlock()
j.dirty = true
j.values[key] = value
// todo := j.load()
// todo[key] = value
// j.save()
}