Documentation ¶
Index ¶
- type MemoryKvBucket
- type MemoryKvBucketImpl
- func (kvBucket *MemoryKvBucketImpl) Delete(key string) error
- func (kvBucket *MemoryKvBucketImpl) Expire(key string, ttl time.Duration) error
- func (kvBucket *MemoryKvBucketImpl) Get(key string) ([]byte, error)
- func (kvBucket *MemoryKvBucketImpl) Set(key string, value []byte) error
- func (kvBucket *MemoryKvBucketImpl) SetEx(key string, value []byte, ttl time.Duration) error
- type MemoryKvDb
- type MemoryKvDbImpl
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryKvBucket ¶
type MemoryKvBucketImpl ¶
type MemoryKvBucketImpl struct {
// contains filtered or unexported fields
}
func (*MemoryKvBucketImpl) Delete ¶
func (kvBucket *MemoryKvBucketImpl) Delete(key string) error
func (*MemoryKvBucketImpl) Expire ¶
func (kvBucket *MemoryKvBucketImpl) Expire(key string, ttl time.Duration) error
func (*MemoryKvBucketImpl) Get ¶
func (kvBucket *MemoryKvBucketImpl) Get(key string) ([]byte, error)
type MemoryKvDb ¶
type MemoryKvDb interface {
GetBucket(name string) MemoryKvBucket
}
func NewMemoryKvDb ¶
func NewMemoryKvDb(options Options) MemoryKvDb
type MemoryKvDbImpl ¶
type MemoryKvDbImpl struct {
// contains filtered or unexported fields
}
func (*MemoryKvDbImpl) GetBucket ¶
func (kvDb *MemoryKvDbImpl) GetBucket(name string) MemoryKvBucket
Click to show internal directories.
Click to hide internal directories.