package
Version:
v0.0.0-...-0ac9ed0
Opens a new window with list of versions in this module.
Published: Mar 19, 2021
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type DB struct {
Exec redis.Cmdable
}
New creates a new DB connection
CacheOnce makes a cache
Example:
CacheOnce(&gocache.Item{
Key: "mykey",
Value: obj, // destination
Do: func(*cache.Item) (interface{}, error) {
return &Object{
Str: "mystring",
Num: 42,
}, nil
},
})
func (d *DB) DB() redis.Cmdable
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.