Documentation ¶
Index ¶
- func Info() (string, string)
- type GoMemDb
- func (gmdb *GoMemDb) Add(key string, pair interface{}) error
- func (gmdb *GoMemDb) Clear()
- func (gmdb *GoMemDb) Delete(key string) error
- func (gmdb *GoMemDb) Get(key string) interface{}
- func (gmdb *GoMemDb) GroupByPairDatatype(datatype interface{}) map[string]interface{}
- func (gmdb *GoMemDb) NeedCompress()
- func (gmdb *GoMemDb) Representate() map[string]interface{}
- func (gmdb *GoMemDb) Save() error
- func (gmdb *GoMemDb) Set(key string, value interface{}) error
- type KeyPair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GoMemDb ¶
GoMemoryDatabase structure. Filename is name of file where to write db. KeyPairs are values. Compress. Set it to true if you want zlib compression.
func (*GoMemDb) GroupByPairDatatype ¶ added in v0.2.0
returns map with keys and values based on given datatype
func (*GoMemDb) Representate ¶
returns map representation of all keypairs
Click to show internal directories.
Click to hide internal directories.