mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 14:20:54 +00:00
add comments on Scan func
This commit is contained in:
parent
f2bae3e367
commit
f70fd5babf
1
cache/redis/redis.go
vendored
1
cache/redis/redis.go
vendored
@ -151,6 +151,7 @@ func (rc *Cache) ClearAll() error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Scan scan all keys matching the pattern. a better choice than `keys`
|
||||||
func (rc *Cache) Scan(pattern string) (keys []string, err error) {
|
func (rc *Cache) Scan(pattern string) (keys []string, err error) {
|
||||||
c := rc.p.Get()
|
c := rc.p.Get()
|
||||||
defer c.Close()
|
defer c.Close()
|
||||||
|
Loading…
Reference in New Issue
Block a user