Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct { Addr string Ch chan bool Storage StorageEngine }
type StorageEngine ¶
type StorageEngine interface { Write(key, val string) error Read(key string) (string, error) Delete(key string) error }
func NewStorage ¶
func NewStorage(path string) StorageEngine
Click to show internal directories.
Click to hide internal directories.