Documentation ¶
Index ¶
- type BinaryCoder
- type BinaryDecoder
- type BinaryValue
- type Cache
- func (c *Cache) ClearBeans(tableName string)
- func (c *Cache) ClearIds(tableName string)
- func (c *Cache) DelBean(tableName string, id string)
- func (c *Cache) DelIds(tableName, sql string)
- func (c *Cache) GetBean(tableName string, id string) interface{}
- func (c *Cache) GetIds(tableName, sql string) interface{}
- func (c *Cache) PutBean(tableName string, id string, obj interface{})
- func (c *Cache) PutIds(tableName, sql string, ids interface{})
- type Coder
- type GobCoder
- type JsonCoder
- type Option
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinaryCoder ¶
type BinaryCoder struct {
// contains filtered or unexported fields
}
func NewBinaryCoder ¶
func NewBinaryCoder() *BinaryCoder
func (*BinaryCoder) Decode ¶
func (c *BinaryCoder) Decode(key string, data []byte) (interface{}, error)
func (*BinaryCoder) Encode ¶
func (c *BinaryCoder) Encode(key string, data interface{}) ([]byte, error)
func (*BinaryCoder) Register ¶
func (c *BinaryCoder) Register(key uint32, decoder BinaryDecoder)
type BinaryDecoder ¶
type BinaryValue ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) ClearBeans ¶
type Coder ¶
type Coder interface { Encode(key string, data interface{}) ([]byte, error) Decode(key string, data []byte) (interface{}, error) }
How to encode and decode cached bean to interact with backend storage devices
type JsonCoder ¶
type JsonCoder struct {
// contains filtered or unexported fields
}
func DefaultCoder ¶
func DefaultCoder() *JsonCoder
func NewJsonCoder ¶
func NewJsonCoder() *JsonCoder
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithKeyPrefix ¶
func WithKeySeparators ¶
func WithLogger ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.