move cache2 package to cache (#14921)

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
This commit is contained in:
Siyuan Liu
2020-07-18 01:01:06 -07:00
committed by GitHub
parent 3f46cf6f60
commit c7f7bef9ec
22 changed files with 111 additions and 578 deletions

View File

@@ -8,12 +8,12 @@ import (
"time"
"github.com/mattermost/mattermost-server/v5/model"
"github.com/mattermost/mattermost-server/v5/services/cache2"
"github.com/mattermost/mattermost-server/v5/services/cache"
)
const OPEN_GRAPH_METADATA_CACHE_SIZE = 10000
var openGraphDataCache = cache2.NewLRU(&cache2.LRUOptions{
var openGraphDataCache = cache.NewLRU(&cache.LRUOptions{
Size: OPEN_GRAPH_METADATA_CACHE_SIZE,
})