Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFileSystemStorage ¶
NewFileSystemStorage Factory for fs storage saves db to `storageDir/*`
func NewMemoryStorage ¶
NewMemoryStorage Factory for memory storage saves db to `storageDir/memory.db`
Types ¶
type Storage ¶
type Storage interface { Put(key string, value string, expiration time.Duration) error Get(key string) (io.Reader, error) GetPattern(pattern string) (io.Reader, error) Delete(key string) error DeleteAll() error Type() string IsNotExist(err error) bool Flush() }
Storage Interface for storage operations
Click to show internal directories.
Click to hide internal directories.