Documentation ¶
Index ¶
- type Store
- func (s *Store) Close() error
- func (s *Store) Connect() error
- func (s *Store) Flush() error
- func (_ *Store) FromGobToItem(b []byte, item interface{}) (interface{}, error)
- func (_ *Store) FromJSONToItem(b []byte, item interface{}) (interface{}, error)
- func (s *Store) Get(key string, item interface{}) (interface{}, error)
- func (s *Store) GetAll(pattern string, emptyRecordFunc config.EmptyRecordFunc) ([]interface{}, error)
- func (_ *Store) ItemToGob(item interface{}) ([]byte, error)
- func (_ *Store) ItemToJSON(item interface{}) ([]byte, error)
- func (s *Store) Remove(key string) error
- func (s *Store) Set(key string, item interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) FromGobToItem ¶
Item deserializing
func (*Store) FromJSONToItem ¶
func (*Store) GetAll ¶
func (s *Store) GetAll(pattern string, emptyRecordFunc config.EmptyRecordFunc) ([]interface{}, error)
func (*Store) ItemToJSON ¶
Click to show internal directories.
Click to hide internal directories.