forked from mirror/ledisdb
add CompactStore interface
This commit is contained in:
parent
9bfd3b2208
commit
9f5d7f4a0f
|
@ -230,3 +230,10 @@ func (l *Ledis) checkTTL() {
|
|||
func (l *Ledis) StoreStat() *store.Stat {
|
||||
return l.ldb.Stat()
|
||||
}
|
||||
|
||||
func (l *Ledis) CompactStore() error {
|
||||
l.wLock.Lock()
|
||||
defer l.wLock.Unlock()
|
||||
|
||||
return l.ldb.Compact()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue