🧹 introduce reset and close

This commit is contained in:
Fenny
2020-11-06 01:41:46 +01:00
parent 1634e44e61
commit f9a30234b9
28 changed files with 125 additions and 87 deletions

View File

@@ -36,10 +36,10 @@ type Config struct {
// Optional. Default is "fiber_storage"
Table string
// Clear any existing keys in existing Table
// Reset clears any existing keys in existing Table
//
// Optional. Default is false
Clear bool
Reset bool
// Time before deleting expired keys
//
@@ -89,7 +89,7 @@ var ConfigDefault = Config{
Port: 5432,
Database: "fiber",
Table: "fiber_storage",
Clear: false,
Reset: false,
GCInterval: 10 * time.Second,
maxOpenConns: 100,
maxIdleConns: 100,