Documentation ¶
Index ¶
- type Database
- func (d *Database) Del(key string) error
- func (d *Database) Exists(key string) (bool, error)
- func (d *Database) Get(key string) ([]byte, error)
- func (d *Database) Init(tableName, urn string) error
- func (d *Database) MDel(keys ...string) error
- func (d *Database) MExists(keys ...string) ([]bool, error)
- func (d *Database) MGet(keys ...string) ([][]byte, error)
- func (d *Database) MSet(kvs types.KeyValues, expiresAt *time.Time) error
- func (d *Database) Raw() *sql.DB
- func (d *Database) Set(key string, value []byte, expiresAt *time.Time) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func (*Database) MExists ¶ added in v0.2.0
MExists checks for existence of all specified keys. Booleans will be returned in the same order as keys are specified.
Click to show internal directories.
Click to hide internal directories.