Update documentation
This commit is contained in:
parent
5a4fa6f2b0
commit
42a909c1ad
@ -25,7 +25,10 @@ type Store struct {
|
|||||||
cache *gocache.Cache
|
cache *gocache.Cache
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewStore creates a new store
|
// NewStore creates a new store using gocache.Cache
|
||||||
|
//
|
||||||
|
// This store holds everything in memory, and if the file parameter is not blank,
|
||||||
|
// supports eventual persistence.
|
||||||
func NewStore(file string) (*Store, error) {
|
func NewStore(file string) (*Store, error) {
|
||||||
store := &Store{
|
store := &Store{
|
||||||
file: file,
|
file: file,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user