Documentation ¶
Index ¶
- type Client
- type CreateDbOptions
- type Data
- func (d *Data) Delete(key string) error
- func (d *Data) DeleteByPrefix(prefix string) error
- func (d *Data) Get(key string) ([]byte, bool, error)
- func (d *Data) NewSendStream() (*SendStream, error)
- func (d *Data) Read(prefix string, callback ReadCallback) error
- func (d *Data) Set(key string, data []byte) error
- func (d *Data) SetWithTtl(key string, data []byte, ttl int32) error
- type DbClient
- type ReadCallback
- type SendStream
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateDbOptions ¶ added in v0.3.0
type CreateDbOptions struct {
InMemory bool
}
type Data ¶
type Data struct {
// contains filtered or unexported fields
}
func (*Data) DeleteByPrefix ¶
func (*Data) NewSendStream ¶
func (d *Data) NewSendStream() (*SendStream, error)
type DbClient ¶ added in v0.3.0
type DbClient struct {
// contains filtered or unexported fields
}
func (*DbClient) Create ¶ added in v0.3.0
func (d *DbClient) Create(opt CreateDbOptions) error
func (*DbClient) EnsureDb ¶ added in v0.3.0
func (d *DbClient) EnsureDb(opt CreateDbOptions) error
type ReadCallback ¶
type SendStream ¶
type SendStream struct {
// contains filtered or unexported fields
}
func (*SendStream) Close ¶
func (s *SendStream) Close() error
Click to show internal directories.
Click to hide internal directories.