2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 07:57:21 +08:00

feat: redis添加清空

This commit is contained in:
耗子
2024-11-12 02:46:54 +08:00
parent 90fc48f478
commit 0317aa1401

View File

@@ -169,3 +169,8 @@ func (r *Redis) Data(page, pageSize int) ([]RedisKV, error) {
return result, nil
}
func (r *Redis) Clear() error {
_, err := r.conn.Do("FLUSHDB")
return err
}