mirror of https://github.com/ledisdb/ledisdb.git
17 lines
232 B
Go
17 lines
232 B
Go
|
package store
|
||
|
|
||
|
import (
|
||
|
"github.com/siddontang/ledisdb/store/driver"
|
||
|
)
|
||
|
|
||
|
type Snapshot struct {
|
||
|
driver.ISnapshot
|
||
|
}
|
||
|
|
||
|
func (s *Snapshot) NewIterator() *Iterator {
|
||
|
it := new(Iterator)
|
||
|
it.it = s.ISnapshot.NewIterator()
|
||
|
|
||
|
return it
|
||
|
}
|