Expirations are now based on last accessed instead of time created

This commit is contained in:
Frederick F. Kautz IV
2015-04-29 15:28:42 -07:00
parent c8db3e1c3b
commit 0da04c6f17
3 changed files with 27 additions and 1 deletions

View File

@@ -39,7 +39,7 @@ type MemoryFactory struct {
// GetStartServerFunc builds memory api servers
func (f MemoryFactory) GetStartServerFunc() StartServerFunc {
return func() (chan<- string, <-chan error) {
_, _, driver := memory.Start(f.MaxMemory, 3*time.Hour)
_, _, driver := memory.Start(f.MaxMemory, 1*time.Hour)
ctrl, status, _ := httpserver.Start(api.HTTPHandler(f.Domain, driver), f.Config)
return ctrl, status
}