Add initial cut of auto expiry of objects

This commit is contained in:
Harshavardhana
2015-10-18 14:47:56 -07:00
parent c590acfc38
commit 179d2d7dac
4 changed files with 96 additions and 20 deletions
+3
View File
@@ -59,6 +59,9 @@ func getNewCloudStorageAPI(conf serverConfig) CloudStorageAPI {
fs.SetRootPath(conf.Path)
fs.SetMinFreeDisk(conf.MinFreeDisk)
if conf.Expiry > 0 {
go fs.AutoExpiryThread(conf.Expiry)
}
return CloudStorageAPI{
Filesystem: fs,
Anonymous: conf.Anonymous,