github.com/zhiqiangxu/util@v0.0.0-20230112053021-0a7aee056cd5/skl/lf/types.go (about)

     1  package lf
     2  
     3  type list interface {
     4  	Contains(k []byte) bool
     5  	Get(k []byte) (v []byte, exists bool)
     6  	Insert(k, v []byte) (isNew bool, err error)
     7  	Delete(k []byte) bool
     8  }