Skip to content

Commit

Permalink
Add GetUnsafeInnerCache
Browse files Browse the repository at this point in the history
  • Loading branch information
QuangTung97 committed Jul 8, 2021
1 parent b4bd13c commit f25088b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions memtable.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ func (m *Memtable) Invalidate(key []byte) (affected bool) {
return m.cache.Del(key)
}

// GetUnsafeInnerCache returns the freecache
func (m *Memtable) GetUnsafeInnerCache() *freecache.Cache {
return m.cache
}

func ceilPowerOfTwo(n uint32) uint32 {
if n == 0 {
return 1
Expand Down

0 comments on commit f25088b

Please sign in to comment.