Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Default = map[string]func(...string) StoreDriver{ "memory": func(...string) StoreDriver { return &MemoryStore{} }, }
Functions ¶
This section is empty.
Types ¶
type MemoryStore ¶
type MemoryStore struct {
// contains filtered or unexported fields
}
func (*MemoryStore) Delete ¶
func (s *MemoryStore) Delete(key string)
func (*MemoryStore) Exist ¶
func (s *MemoryStore) Exist(key string) bool
func (*MemoryStore) Get ¶
func (s *MemoryStore) Get(key string) interface{}
func (*MemoryStore) Range ¶
func (s *MemoryStore) Range(callback func(string, interface{}) bool)
func (*MemoryStore) Set ¶
func (s *MemoryStore) Set(key string, value interface{})
type MemoryStoreFactory ¶
type MemoryStoreFactory struct{}
func (MemoryStoreFactory) New ¶
func (MemoryStoreFactory) New() StoreDriver
type StoreDriver ¶
type StoreFactory ¶
type StoreFactory struct {
// contains filtered or unexported fields
}
func NewStoreFactory ¶
func NewStoreFactory(factory map[string]func(...string) StoreDriver) *StoreFactory
func (*StoreFactory) New ¶
func (f *StoreFactory) New(name string, args ...string) StoreDriver
Click to show internal directories.
Click to hide internal directories.