Documentation
¶
Index ¶
- type IMemoryDB
- type MemoryDb
- func (db *MemoryDb) AddConnection(id string)
- func (db *MemoryDb) CountConnection() int
- func (db *MemoryDb) GetAllConnection() (ids []string)
- func (db *MemoryDb) GetData(key string) (any, bool)
- func (db *MemoryDb) Remove(key string)
- func (db *MemoryDb) RemoveConnection(id string)
- func (db *MemoryDb) Run(ctx context.Context)
- func (db *MemoryDb) SetData(key string, value any)
- func (db *MemoryDb) SetDataWithTTL(key string, value any, ttl time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryDb ¶
type MemoryDb struct {
// contains filtered or unexported fields
}
func (*MemoryDb) AddConnection ¶
func (*MemoryDb) CountConnection ¶
func (*MemoryDb) GetAllConnection ¶
func (*MemoryDb) RemoveConnection ¶
Click to show internal directories.
Click to hide internal directories.