Documentation ¶
Index ¶
- type Datastore
- func (d *Datastore) Delete(key ds.Key) (err error)
- func (d *Datastore) Get(key ds.Key) (value interface{}, err error)
- func (d *Datastore) Has(key ds.Key) (exists bool, err error)
- func (d *Datastore) Put(key ds.Key, value interface{}) (err error)
- func (d *Datastore) Query(q dsq.Query) (dsq.Results, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Datastore ¶
type Datastore struct {
// contains filtered or unexported fields
}
Datastore uses golang-lru for internal storage.
func NewDatastore ¶
NewDatastore constructs a new LRU Datastore with given capacity.
Click to show internal directories.
Click to hide internal directories.