Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigDefault = Config{ Db: nil, Dialect: "", ConnectionURI: "", SkipDefaultTransaction: false, PrepareStmt: false, Table: "fiber_storage", Reset: false, GCInterval: 10 * time.Second, // contains filtered or unexported fields }
ConfigDefault is the default config
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // DB will override Dialect and ConnectionURI values if used // // Optional. Default is nil Db *gorm.DB // Dialect string to use for DB. Will override all other authentication values if used // // Optional. Default is "" Dialect string // ConnectionURI string to use for DB. Will override all other authentication values if used // // Optional. Default is "" ConnectionURI string // SkipDefaultTransaction executes write operations outside of transactions for better performances // // Optional. Default is false SkipDefaultTransaction bool // PrepareStmt prepares statement when executing any SQL and caches them to speed up future calls // // Optional. Default is false PrepareStmt bool // Table name // // Optional. Default is "fiber_storage" Table string // Reset clears any existing keys in existing Table // // Optional. Default is false Reset bool // Time before deleting expired keys // // Optional. Default is 10 * time.Second GCInterval time.Duration // contains filtered or unexported fields }
Config defines the config for storage.
Click to show internal directories.
Click to hide internal directories.