1
0
mirror of https://github.com/taigrr/bitcask synced 2025-01-18 04:03:17 -08:00

Add Len() to exported API (extended API)

This commit is contained in:
James Mills
2019-03-21 10:47:50 +10:00
parent aaea7273c3
commit 352c32ee12
3 changed files with 12 additions and 0 deletions

View File

@@ -52,6 +52,10 @@ func (k *Keydir) Delete(key string) {
delete(k.kv, key)
}
func (k *Keydir) Len() int {
return len(k.kv)
}
func (k *Keydir) Keys() chan string {
ch := make(chan string)
go func() {