Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiskStorage ¶
type DiskStorage struct {
// contains filtered or unexported fields
}
implements Storage interface
func NewDiskStorage ¶
func NewDiskStorage(directory string) *DiskStorage
func (*DiskStorage) Delete ¶
func (s *DiskStorage) Delete(key string) error
type InMemoryStorage ¶
type InMemoryStorage struct{}
implements Storage interface
func NewMemoryStorage ¶
func NewMemoryStorage() *InMemoryStorage
func (*InMemoryStorage) Delete ¶
func (s *InMemoryStorage) Delete(key string) error
Click to show internal directories.
Click to hide internal directories.