1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-20 03:17:04 +00:00
Former-commit-id: a2519c17a039b67129bd5683e9e9a1239c441c0a
This commit is contained in:
Gerasimos (Makis) Maropoulos
2019-08-20 14:19:42 +03:00
parent 2cd217f110
commit 0737c4364c
2 changed files with 23 additions and 10 deletions

View File

@@ -235,13 +235,14 @@ func (r *RadixDriver) getKeys(prefix string) ([]string, error) {
scanner := radix.NewScanner(r.pool, radix.ScanOpts{
Command: "SCAN",
Pattern: r.Config.Prefix + prefix + r.Config.Delim + "*", // get all of this session except its root sid.
// Count: 9999999999,
Count: 300000,
})
var key string
for scanner.Next(&key) {
keys = append(keys, key)
keys = append(keys, key[len(r.Config.Prefix):])
}
if err := scanner.Close(); err != nil {
return nil, err
}