change memcache

This commit is contained in:
yourok
2019-05-17 10:51:26 +03:00
parent 353e9f6d00
commit 6ba43cc55a

View File

@@ -8,7 +8,7 @@ import (
"server/settings"
"server/torr/storage"
"server/torr/storage/memcache"
"server/torr/storage/memcacheV2"
"server/torr/storage/state"
"server/utils"
@@ -63,7 +63,7 @@ func (bt *BTServer) Reconnect() error {
}
func (bt *BTServer) configure() {
bt.storage = memcache.NewStorage(settings.Get().CacheSize)
bt.storage = memcacheV2.NewStorage(settings.Get().CacheSize)
blocklist, _ := iplist.MMapPackedFile(filepath.Join(settings.Path, "blocklist"))