mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-05 16:57:06 +08:00
add scan command
This commit is contained in:
@@ -120,3 +120,7 @@ func (dict *SimpleDict) RandomDistinctKeys(limit int) []string {
|
||||
func (dict *SimpleDict) Clear() {
|
||||
*dict = *MakeSimple()
|
||||
}
|
||||
|
||||
func (dict *SimpleDict) DictScan(cursor int, count int, pattern string) ([][]byte, int) {
|
||||
return stringsToBytes(dict.Keys()), 0
|
||||
}
|
||||
|
Reference in New Issue
Block a user