Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatabaseDriver ¶
type DatabaseDriver interface {
// Get a value from the database.
Get(string) ([]byte, error)
// Set a value to the database.
Set(string, any) error
Close() error
}
func NewDatabase ¶
func NewDatabase(_options *options.Config) (DatabaseDriver, error)
Create a new database instance.
func NewRedisDatabase ¶
func NewRedisDatabase(_options *options.Config) (DatabaseDriver, error)
Create a new cache instance.
func NewSQLiteDatabase ¶
func NewSQLiteDatabase(_options *options.Config) (DatabaseDriver, error)
Create a new cache instance.
type RedisDatabase ¶
type RedisDatabase struct {
// contains filtered or unexported fields
}
func (*RedisDatabase) Close ¶ added in v1.1.0
func (db *RedisDatabase) Close() error
type SQLiteDatabase ¶
type SQLiteDatabase struct {
// contains filtered or unexported fields
}
func (*SQLiteDatabase) Close ¶ added in v1.1.0
func (db *SQLiteDatabase) Close() error
Click to show internal directories.
Click to hide internal directories.