Documentation ¶
Index ¶
- Variables
- type Data
- func (data *Data) Add(key string, value []byte) error
- func (data *Data) AddWithTTL(key string, value []byte, ttl time.Duration) error
- func (data *Data) Exist(key string) ([]byte, error)
- func (data *Data) Get(key string) ([]byte, error)
- func (data *Data) GetAll() (map[string][]byte, error)
- func (data *Data) GetValues() (<-chan Item, error)
- func (data *Data) Remove(key string) error
- type Item
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MaxPartCashSize = 1024 * 1024 * 100 MaxValueCashSize = 1024 * 1024 * 50 DATABASE = map[string]*Data{} )
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct {
// contains filtered or unexported fields
}
func (*Data) AddWithTTL ¶
Click to show internal directories.
Click to hide internal directories.