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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user