Documentation ¶
Index ¶
- type PineBadger
- func (c *PineBadger) Badger() *badgerDB.DB
- func (c *PineBadger) Delete(key string) error
- func (c *PineBadger) Exists(key string) bool
- func (c *PineBadger) Get(key string) (val []byte, err error)
- func (c *PineBadger) GetWithUnmarshal(key string, receiver interface{}) error
- func (c *PineBadger) Set(key string, val []byte, ttl ...int) error
- func (c *PineBadger) SetWithMarshal(key string, structData interface{}, ttl ...int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PineBadger ¶
func New ¶
func New(defaultTTL int, path string) *PineBadger
func (*PineBadger) Badger ¶ added in v0.0.4
func (c *PineBadger) Badger() *badgerDB.DB
func (*PineBadger) Delete ¶
func (c *PineBadger) Delete(key string) error
func (*PineBadger) Exists ¶
func (c *PineBadger) Exists(key string) bool
func (*PineBadger) GetWithUnmarshal ¶
func (c *PineBadger) GetWithUnmarshal(key string, receiver interface{}) error
func (*PineBadger) SetWithMarshal ¶
func (c *PineBadger) SetWithMarshal(key string, structData interface{}, ttl ...int) error
Click to show internal directories.
Click to hide internal directories.