Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type T ¶
type T[K dsobj] struct {
// contains filtered or unexported fields
}
T is a file-backed key-value store.
func NewDataStore ¶
func NewDataStore[K dsobj](rng uo.RandomSource) *T[K]
NewDataStore initializes and returns a new DataStore object.
func (*T[K]) Add ¶
func (s *T[K]) Add(k K, t uo.SerialType)
Add adds a new object to the datastore assigning it a new serial of the correct type.
Click to show internal directories.
Click to hide internal directories.